Skip to content

Commit

Permalink
Remove additional auth.log when enabling logging
Browse files Browse the repository at this point in the history
The additional auth.log which is configured when setting
sftp_enable_logging = true simply duplicates these syslog facilities:
auth,authpriv.* and write the messages to the file
/var/log/sftp/auth.log

This duplicates the logs in multiple files and the later one is not
managed by logrotate.

Closes #1
  • Loading branch information
strebitz committed Sep 18, 2020
1 parent 077a3f9 commit dd3bef6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@
# Log internal-sftp in a separate file
:programname, isequal, "internal-sftp" -/var/log/sftp/verbose.log
:programname, isequal, "internal-sftp" ~
# additionally write an auth log
auth,authpriv.* /var/log/sftp/auth.log
when: sftp_enable_logging
notify: SFTP-Server | Restart rsyslog

Expand Down

0 comments on commit dd3bef6

Please sign in to comment.