Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Created November 7, 2016 10:45
Show Gist options
  • Save stlehmann/5b1eb97d2ceda2d9d5103bc8084bebd5 to your computer and use it in GitHub Desktop.
Save stlehmann/5b1eb97d2ceda2d9d5103bc8084bebd5 to your computer and use it in GitHub Desktop.
additional config file for syslog-ng. Put into /etc/syslog/conf.d/ folder.
# log alls ssh events in ssh.log
destination sshd { file("/var/log/ssh.log"); };
filter sshd { program("ssh"); };
log { source(s_src); filter(sshd); destination(sshd); flags(final); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment