Created
June 30, 2014 12:01
-
-
Save LoicMahieu/4159d1e9ab1d53c0def6 to your computer and use it in GitHub Desktop.
Coldfusion 10 - Logrotate
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
/opt/coldfusion10/cfusion/logs/*.log { | |
# Log files are rotated every day. | |
daily | |
# If the log file is missing, go on to the next one without issuing an error | |
# message. | |
missingok | |
# Log files are rotated count times before being removed or mailed to the | |
# address specified in a mail directive. | |
rotate 5 | |
# Log files are rotated only if they grow bigger then size bytes. If size is | |
# followed by k, the size is assumed to be in kilobytes. If the M is used, the | |
# size is in megabytes, and if G is used, the size is in gigabytes. So size | |
# 100, size 100k, size 100M and size 100Gare all valid. | |
size 100M | |
# Compressed with gzip(1) | |
compress | |
# Logs are moved into directory for rotation. The directory must be on the | |
# same physical device as the log file being rotated, and is assumed to be | |
# relative to the directory holding the log file unless an absolute path name | |
# is specified. When this option is used all old versions of the log end up in | |
# directory. | |
olddir rotated_logs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment