Skip to content

Instantly share code, notes, and snippets.

@thorsummoner
Created January 18, 2017 20:20
Show Gist options
  • Save thorsummoner/854eac860f1cd71fa5c35082c54a9d55 to your computer and use it in GitHub Desktop.
Save thorsummoner/854eac860f1cd71fa5c35082c54a9d55 to your computer and use it in GitHub Desktop.
logrotate user logs
# /etc/logrotate.d/userlogs
/var/run/user/*/log/*.log
/var/run/user/*/log/**/*.log
{
daily
missingok
rotate 7
compress
notifempty
nocreate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment