-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from companieshouse/feature/tuxedo-log-rotation
Add log rotation for Tuxedo services
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{ tuxedo_logs_path }}/*/*-ngsrv.log {{ tuxedo_logs_path }}/*/*-stdout.txt {{ tuxedo_logs_path }}/*/*-stderr.txt { | ||
daily | ||
copytruncate | ||
compress | ||
maxage 7 | ||
maxsize 1G | ||
missingok | ||
notifempty | ||
olddir old | ||
rotate 20 | ||
createolddir 0755 root root | ||
} | ||
|
||
{{ tuxedo_logs_path }}/*/ULOG.* { | ||
daily | ||
copytruncate | ||
compress | ||
maxage 93 | ||
maxsize 1800M | ||
missingok | ||
notifempty | ||
olddir old | ||
rotate 20 | ||
createolddir 0755 root root | ||
lastaction | ||
/bin/find /var/log/tuxedo -maxdepth 2 -name 'ULOG.*' -mtime +1 -size 0 -delete | ||
endscript | ||
} |