keep-vsftpd-xferlog-for-a-full-year-logrotate.md
devcondasecuritykeep-vsftpd-xferlog-for-a-full-year-logrotate.md

Keep vsftpd xferlog for a Full Year (logrotate)

Written by

in

For an ISMS audit finding we had to keep xferlog for one year. Here is what we applied.

I assumed /etc/vsftpd/vsftpd.conf would control it, but it did not. Edit /etc/logrotate.d/vsftpd and add monthly plus rotate 12 so logs under /var/log/xferlog/ accumulate for a year.

  • yearly: once a year
  • monthly: once a month
  • weekly: once a week
  • daily: once a day

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *