Skip to content

Instantly share code, notes, and snippets.

@thiagomgo
Last active February 11, 2019 21:26
Show Gist options
  • Save thiagomgo/fe080b566b2f8de4c919027849f352da to your computer and use it in GitHub Desktop.
Save thiagomgo/fe080b566b2f8de4c919027849f352da to your computer and use it in GitHub Desktop.
logrotate kafka
##
## 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