Skip to content

Instantly share code, notes, and snippets.

@ijin
Created March 26, 2013 03:22
Show Gist options
  • Save ijin/5242874 to your computer and use it in GitHub Desktop.
Save ijin/5242874 to your computer and use it in GitHub Desktop.
td-agent logrotate setting
/var/log/td-agent/*.log {
daily
rotate 10
compress
delaycompress
notifempty
create 640 td-agent td-agent
sharedscripts
postrotate
pid=/var/run/td-agent/td-agent.pid
test -s $pid && kill -USR1 `cat $pid`
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment