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.


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


Code:                                        /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.