Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I have configured to log procmail activity in /var/log/ directory in my mail server by putting entry after the certain jobs as Code: LOGFILE="/var/log/procmail.log" . I have noticed ...
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    8

    Smile log file size and rotate control

    Hi All,
    I have configured to log procmail activity in /var/log/ directory in my mail server by putting entry after the certain jobs as
    Code:
    LOGFILE="/var/log/procmail.log"
    .

    I have noticed that it wont rotate and keep growing larger and larger (now 1.4Mb).
    How can I configure it to rotate in either every 300K or day by day basis.

    I am using CentOS 5.2.

    My /etc/syslog.conf file have following entries.

    Code:
    *.info;mail.none;authpriv.none;cron.none                /var/log/messages
    
    # The authpriv file has restricted access.
    authpriv.*                                              /var/log/secure
    
    # Log all the mail messages in one place.
    mail.*                                                  -/var/log/maillog
    
    
    # Log cron stuff
    cron.*                                                  /var/log/cron
    
    # Everybody gets emergency messages
    *.emerg                                                 *
    
    # Save news errors of level crit and higher in a special file.
    uucp,news.crit                                          /var/log/spooler
    
    # Save boot messages also to boot.log
    local7.*                                                /var/log/boot.log
    Pls suggest any method.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Look at your /etc/logrotate.conf file.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...