Skip to content

Instantly share code, notes, and snippets.

@phunehehe
Last active December 20, 2015 03:09
Show Gist options
  • Save phunehehe/6061558 to your computer and use it in GitHub Desktop.
Save phunehehe/6061558 to your computer and use it in GitHub Desktop.
A nice starting point for a logrotate config file
/path/to/*.log {
size 10M
rotate 10
create
compress
delaycompress
dateext
dateformat -%Y%m%d-%s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment