You are not logged in.
Pages: 1
Hello,
I can't seem to find the sshd logs
Where are they ?
Do I have to configure something in /etc/syslog-ng.conf ?
Thanks.
Last edited by Kooothor (2010-12-02 22:34:50)
ktr
Offline
/var/log/auth.log
Offline
If you want to have separate log files for sshd, you can add the following line in /etc/syslog-ng.conf, and then restart syslog-ng.
destination d_sshd { file("/var/log/sshd.log"); };
filter f_sshd { program("sshd"); };
log { source(src); filter(f_sshd); destination(d_sshd); };
You could then add the file /var/log/sshd.log to the list of file in /etc/logrotate.d/syslog-ng.
Of course, this all presume that you are using syslog-ng as your syslog daemon...
Offline
Thank you both
ktr
Offline
Pages: 1