problem with newsyslog and apache

problem with newsyslog and apache

Post by Jean-Yves Avenar » Wed, 04 Sep 2002 12:00:27



Hello

As my log file on my http server kept growing and growing, I've configured
newsyslog to move the apache log file at a certain time...

So I've added the following line in my /etc/newsyslog.conf

Unfortunately, when the log file get rolled-over, apache stops to write log
file into the newly created log file.

I've also tried to send a SIGHUP to apache when the roll-over happens, but
it doesn't seem to make any difference:

Z /var/run/httpd.pid

Any ideas about what I'm supposed to do so Apache can keep writing in the
newly create logfile?

Thank you
Jean-Yves

 
 
 

problem with newsyslog and apache

Post by _m_b » Wed, 04 Sep 2002 12:52:33


        Hi !

        What about about apache rotatelogs in httpd.conf ,
         without newssyslog ?

ala     TransferLog    "|rotatelogs    /var/log/www/access_log 86400"

        SY, YDB

 
 
 

problem with newsyslog and apache

Post by Jean-Yves Avenar » Thu, 05 Sep 2002 04:31:38


Hello


Quote:> ala TransferLog    "|rotatelogs    /var/log/www/access_log 86400"

Great! thank you for that..
Too many possible ways to do the same things on these machines :)

Jean-Yves