1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Logrotate.conf problem

Discussion in 'Plesk for Linux - 8.x and Older' started by miklr, Mar 11, 2006.

  1. miklr

    miklr Guest

    0
     
    Heath, per our discussion.

    I have the following set in my logrotate.conf file (please take note of the /var/log/messages part as remember this is where we were getting the overload, but for some reason it didn't rotate)...

    # see "man logrotate" for details
    # rotate log files weekly
    weekly

    # keep 4 weeks worth of backlogs
    rotate 4

    # create new (empty) log files after rotating old ones
    create

    # uncomment this if you want your log files compressed
    #compress

    # RPM packages drop log rotation information into this directory
    include /etc/logrotate.d

    # no packages own wtmp -- we'll rotate them here
    /var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
    }

    /var/log/messages {
    rotate 1
    size=100k
    postrotate
    /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
    }

    # system-specific logs may be also be configured here.


    ... ALSO Here is what I have in the syslog file...

    /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
    /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
    }

    #### ANY suggestions are appreciated.

    miklr.
     
Loading...