Last active
February 11, 2019 21:26
-
-
Save thiagomgo/fe080b566b2f8de4c919027849f352da to your computer and use it in GitHub Desktop.
logrotate kafka
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
## | |
## to test: | |
## logrotate -d /etc/logrotate.conf | |
## | |
## to enforce: | |
## logrotate -v -f /etc/logrotate.conf | |
## | |
/data/kafka/log/*.log { | |
daily | |
rotate 2 | |
dateext | |
dateformat _%Y-%m-%d-%s | |
copytruncate | |
compress | |
delaycompress | |
missingok | |
notifempty | |
} | |
/data/kafka/log/*.err { | |
daily | |
rotate 2 | |
dateext | |
dateformat _%Y-%m-%d-%s | |
copytruncate | |
compress | |
delaycompress | |
missingok | |
notifempty | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment