syslog config for sftp logging

I'm on FreeBSD11. I changed syslog config file to log sftp actions in a file, but it doesn't work.

/etc/ssh/sshd_config

Code:
Subsystem       sftp    /usr/libexec/sftp-server -f LOCAL5 -l INFO

/etc/syslog.conf

Code:
local5.info                                        /var/log/sftp/sftp.log

Then I restart the services, but any action saved in sftp.log and it's empty.

Thank you for your help.
 
Last edited by a moderator:
Did you touch /var/log/sftp/sftp.log to initialize the file? Also make sure the file has the correct permissions.
 
Back
Top