Created
October 26, 2017 11:49
-
-
Save RecNes/7f268a5d628d2275b770f590030b1fee to your computer and use it in GitHub Desktop.
Logrotate configuration for multiple folders with same log folder. It applies to log files which are created by unstoppable services.
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
/var/www/*/*/logs/*.log | |
{ | |
olddir old_logs | |
daily | |
rotate 365 | |
dateext | |
nocreate | |
copytruncate | |
missingok | |
delaycompress | |
compress | |
maxage 365 | |
ifempty | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment