search for: logstream

Displaying 7 results from an estimated 7 matches for "logstream".

2008 Jan 30
2
How do I get logging with rspec?
Say I''m testing a controller with rspec, and I have logger.debug and logger.error calls. Normally I''d like them to write to the appropriate file, but in this case I''d like to see the output on STDOUT. Is there an easy way to redirect logging in rspec to do this? I''m thinking that controller.should_receive(:logger).and_return(logger) should start it off,
2023 Mar 18
1
Minimize sshd log clutter/spam from unauthenticated connections
...yslog, which is default on just about every linux system) allow you to filter efficiently on the message contents, not just the severity, so you can opt to throw out the messages you don't want. I advocate for a slightly different way of dealing with it, filter these messages from your main logstream, but put them into either a script directly, or a separate file and have a script run against it. Have the script report the number of these messgaes that you get in a time period (minute, hour, whatever you want) and log that count back into your log stream as Marcus Ranum said in his Artifici...
2023 Mar 18
3
Minimize sshd log clutter/spam from unauthenticated connections
...t > about every linux system) allow you to filter efficiently on the > message contents, not just the severity, so you can opt to throw out > the messages you don't want. > > I advocate for a slightly different way of dealing with it, filter > these messages from your main logstream, but put them into either a > script directly, or a separate file and have a script run against it. > Have the script report the number of these messgaes that you get in a > time period (minute, hour, whatever you want) and log that count back > into your log stream > > as Mar...
2009 Aug 22
0
[LLVMdev] X86 Disassembler
...mic_cast: we're trying to eliminate RTTI a C cast should be fine. +int HexDisassembler::disassemble(const Target* target, + LineReader& reader) { ... + + if(targetName == "x86") { + disasm = new X86Disassembler::X86_32Disassembler(obj, logstream); + triple = "x86-apple-darwin"; + } + else if(targetName == "x86-64") { + disasm = new X86Disassembler::X86_64Disassembler(obj, logstream); + triple = "x86_64-apple-darwin"; + } + else { Instead of doing something like this, the X86 disasse...
2023 Mar 18
4
Minimize sshd log clutter/spam from unauthenticated connections
Dear OpenSSH developers, a publicly accessible sshd on port 22 generates a lot of log clutter from unauthenticated connections. For an exemplary host on a university network, sshd accumulates 5~20k log lines on a single day (more than 90% of the total amount of syslog lines). That is despite the host having a restricted configuration (no SSH password authentication, firewall rate limit for
2009 Aug 19
3
[LLVMdev] X86 Disassembler
Bill, thanks for your comments. I'll respond to them individually. I've attached a new revision of the patch that addresses them. Patch built and tested against SVN 79487, with the additional attached fix that fixes an Intel table bug. Sean On 2009/08/18, at 0:57, Bill Wendling wrote: > 0. Watch out for tabs! Fixed. Thanks. > 1. Includes like this "#include
2012 Dec 24
3
puppetdb listening on TCP Ports 1099 and 58772
PuppetDB is operating fine, but I can''t figure out how to disable it from listening globally on TCP 1099 or 58722 How do I disable them from listening globally without having to resort to iptables? $ lsof -i -n -P | grep java | grep LISTEN java 30115 puppetdb 22u IPv6 119118 0t0 TCP *:1099 (LISTEN) java 30115 puppetdb 23u IPv6 117236 0t0 TCP *:58772