[BlueOnyx:08685] Log rotate error:

Wayne Michael wrmichael at hotmail.com
Fri Sep 30 15:54:14 PET 2011



on 5106 server I started to receive an error:

/etc/cron.daily/logrotate:

/usr/bin/analog: analog version 5.32/Unix
/usr/bin/analog: Warning L: Large number of corrupt lines in logfile stdin:
  turn debugging on or try different LOGFORMAT
  (For help on all errors and warnings, see docs/errors.html)
    Current logfile format:
      %v %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B"\n
      %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B"\n
      %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b "%f" "%B"\n
      %S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B"\n

Found this to fix it:

http://www.nuonce.net/support/viewthread.php?fid=15&tid=2213&action=printable

specificly comparing my file to:


The top part should look like this; 

 

"/var/log/httpd/access_log { 

    daily 

    prerotate 

        rm -rf /tmp/.logrotate_apache_access >/dev/null 2>&1 

        cp /var/log/httpd/access_log /tmp/.logrotate_apache_access >/dev/null 2>&1 

    endscript 

    missingok 

    notifempty 

    sharedscripts 

    postrotate 

        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true 

        /usr/local/sbin/split_logs web < /tmp/.logrotate_apache_access  

        rm -f /tmp/.logrotate_apache_access >/dev/null 2>&1 

        /usr/bin/nohup /usr/bin/zz_awstats-run.pl >/dev/null 2>&1 

        /usr/bin/webalizer.pl 

    endscript 

}

 

If it doesn't, it needs to have the line for awstats on it."

I've made the change.  Is it still valid?  (hope so).

Thanks,

Wayne

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20110930/3053d7e8/attachment-0003.html>


More information about the Blueonyx mailing list