Next: Period Related File Examples, Previous: Use of meta-variables, Up: Top
Example 1. Basic configuration for main rc file. Rottlog will use gzip/gunzip to compress/uncompress data. MTA used is sendmail, with administrator contact email of master@example.net. Rotation algorithm and use of file creation attribute will be the same as logrotate. For security, symbolic links will not be followed.
# This file has been created for maximum compatibility with logrotate # # Compressor program packer=gzip # Packer's options to compress and send to stdout compress="-9c" # DE-Compressor program unpacker=gunzip # Decompressor's options to send output do stdout uncompress="-c" # Normal extension of compressed files extension="gz" # Pager used to view uncompressed logs pager="less" # default basedir to store rotated/archived files packdir="/var/log/rottlog" # Sender of mail messages fromuser="rottlog@example.net" # Receiver of mail messages touser="master@example.net" # don't rotate/archive files of 0 size notifempty=1 # Mail program to send messages. mail="/usr/sbin/sendmail -t" # Default Maximum depth to use with * metachar maxdepth=0 # set to 0 will not follow symlinks follow_symlinks=0 # Silently remove from status file no longer existant delayed logfiles remove_missing # Store archived logfiles in the same directory where "live" logfiles # resides nostoredir # ---- LOGROTATE COMPATIBILITY PARAMETERS ---- # Copy mode, owner, and group from old logfile, if create is called # without parameters create_logrotate # Rotate files 'à la logrotate' log_rotate