
This directory must be on the same filesystem as the current log files.Ĭycled log files are kept in the same directory as the current log files. With this, cycled log files are kept in the specified directory. When mail log files are cycled, a copy is not mailed. When mail log files are cycled, they are effectively removed from the system.

This mails log files that are cycled to an address. This does not rotate the log file if it is empty. With this, the log file is rotated even if it is empty. This mails logrotate errors to an address. The log file is compressed when it is cycled. When used with the compress option, the rotated log file is not compressed until the next time it is cycled. This prevents the creation of a new log file. The default is to use the same mode, owner, and group as the original file. This rotates the log file and creates a new log file with the specified permissions, owner, and group. This copies the log files to backup, but the open log file is not truncated. This option copies the active log file to a backup and truncates the active log file. This is used when processes are still writing information to open log files. This is used when you do not want to compress rotated log files. This is used to compress the rotated log file with gzip. These options may also be used to allow logrotate to read configuration parameters from other log files, by using the include parameter. The options entered in / etc/nf may be used to set configuration parameters for any log file on the system. This is a text file, which may contain any of the configuration options listed in the table below. The logrotate program is configured by entering options in the /etc/nf file. The logrotate program may also be used to compress log files and to configure e-mail to users when they are rotated. It may be used to rotate based on the age of the file or the file’s size, and usually runs automatically through the cron utility. It is used to regularly cycle (or rotate) log files by removing the oldest ones from your system and creating new log files. The logrotate program is a log file manager. Using the include option to override defaults.Setting rotation parameters for specific files.

#LINUX LOGTAIL NORWAP HOW TO#
Learn how to use the Logrotate program to administer, back up, and monitor log files on Linux.
