show "not blocking (on whitelist.)" in non-debug log
Issue #75
resolved
Currently, the said log message will only be shown if the SSHGUARD_DEBUG variable is set, which is unfortunate for reasoning about why sshguard ignored some patterns in daily business.
Would it be possible to log that message to regular auth.log as well
SSHGuard 2.0.0 NixOS 15.09 /usr/sbin/sshguard -i /run/sshguard.pid -l /var/log/auth.log -l /var/log/messages iptables
Comments (4)
-
-
- changed status to open
There's not a -d switch, but it's controlled by the environmental variable $SSHGUARD_DEBUG.
That said it sounds like this is a useful message to bump up to LOG_INFO. Is that a good solution?
-
Absolutely. From a sysadmin point of view, the more info you get from white/blacklisting operations the better. Thanks!
-
- changed status to resolved
Committed in 318bf4e, thanks!
- Log in to comment
+1
Currently the sshguard logging is a mystery to me, a "-d" switch would be fantastc and I wholeheartily agree with Maksim about the whitelist logging. Apart from this, sshguard works great and I am really thankful for the work.