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

Logfile rotation

Discussion in 'Plesk for Linux - 8.x and Older' started by baden32, Jun 12, 2008.

  1. baden32

    baden32 Guest

    0
     
    A few if logifle under /var/log are getting bigger and bigger and it seems the log rotation is never executed.
    For example file /var/log/messages was 1.3Gb when I checked and deleted it!

    However:

    1. /etc/logrotate.conf contains a line include /etc/logrotate.d
    2. /etc/logrotate.d contains file syslog
    3. syslog contains
    /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall {
    compress
    dateext
    maxage 365
    rotate 99
    missingok
    notifempty
    size +4096k
    create 640 root root
    sharedscripts
    postrotate
    /etc/init.d/syslog reload
    endscript
    }

    I do not understand all these options but as far I as can see with 1.3Gb the max size is reached for my messages file, but the rotation did not occured.

    What would b the best way to get these logfile rotated as expected?

    Thanks in advance for your help.
    Joel
     
Loading...