Log File Rotation
Previous  Top  Next


This feature is only available in the licensed version.

Log file rotation ensures that log files do not grow indefinately. It allows us to keep a reasonable, finite amount of log data araound.
This can be a necessary consideration if disk space is at a premium or limited for whatever reason.
File rotation is the usual solution to disk space problems.

After a log file has reached a specific size or age, the current log file is moved to another name, eg. logfile.txt.001. The logging process is then continued into an empty file. Whenever the next file size or age is reached the process is repeated, first moving logfile.txt.001 to logfile.txt.002, and then moving the current log file to logfile.txt.001. This process is repeated until the set number of log files in the rotation have been created. The oldest file at that point is discarded. (see illustration below)

filerotation

Log File Rotation options within Kiwi Syslog Daemon's Log to file Action:

Enable Log File Rotation
If this option is checked then the log file will be rotated in the manner described above.
If not, then log file rotation will not occur and data will be logged to the file as normal.

Total number of log files
This specifies the total number of log files in the rotation set. The number of log files created during file rotation will never exceed this number.
e.g. If set to '4', once all log files have been created they will be named <logfile>, <logfile.001>, <logfile.002>, and <logfile.003>

Maximum log file size
Select this option if you want to ensure that no single log file in the rotation set exceeds a certain size.
The size of each file can be specified in bytes, kilobytes, megabytes or gigabytes.

Maximum log file age
Select this option if you want to ensure that no single log file in the rotation set exceeds a certain age.
The age of each file can be specified in minutes, hours, days, weekdays, weeks, months, quarters or years.