Created
March 28, 2022 06:32
-
-
Save bennet-esyoil/5ceefe6d10b409f9ca07532c20fac19d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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