Skip to content

Instantly share code, notes, and snippets.

@bennet-esyoil
Created March 28, 2022 06:32
Show Gist options
  • Save bennet-esyoil/5ceefe6d10b409f9ca07532c20fac19d to your computer and use it in GitHub Desktop.
Save bennet-esyoil/5ceefe6d10b409f9ca07532c20fac19d to your computer and use it in GitHub Desktop.
# crowdsec log-rotate config
# out this in /etc/logrotate.d/crowdsec
# test configuration wit "sudo logrotate --force /etc/logrotate.d/crowdsec"
/var/log/crowdsec.log /var/log/crowdsec_api.log {
daily
rotate 12
compress
copytruncate
delaycompress
missingok
notifempty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment