LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Error logs in webserver (https://www.linuxquestions.org/questions/linux-server-73/error-logs-in-webserver-594084/)

tanveer 10-23-2007 10:33 PM

Error logs in webserver
 
Hi all,

Recently, I have given charge of a webserver which has a monthly hit of around 1100000. Now the problem is its used to get this message in the error log file and the same message over and over again. After looking for solution I got the picture that if the log size is >2GB then this comes in log and my access_log was 2.2G. So I deleted all entry in access_log file and now its 0. But still this message comes in error_log.
In httpd.conf file I have the entry like this
Code:

ErrorLog /usr/local/apache/logs/error_log

CustomLog /usr/local/apache/logs/access_log common

Code:

[Tue Oct 23 22:56:35 2007] [notice] child pid 19560 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:35 2007] [notice] child pid 19562 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:35 2007] [notice] child pid 19564 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:36 2007] [notice] child pid 19566 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:36 2007] [notice] child pid 19568 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:38 2007] [notice] child pid 19557 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:41 2007] [notice] child pid 19489 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:46 2007] [notice] child pid 19570 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:47 2007] [notice] child pid 19539 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:47 2007] [notice] child pid 19569 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:48 2007] [notice] child pid 19572 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:48 2007] [notice] child pid 19573 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:49 2007] [notice] child pid 19574 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:50 2007] [notice] child pid 19576 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:52 2007] [notice] child pid 19580 exit signal File size limit exceeded (25)
[Tue Oct 23 22:56:53 2007] [notice] child pid 19583 exit signal File size limit exceeded (25)

Thanks in advance for any suggestions.

bathory 10-24-2007 02:28 AM

You can use the apache rotatelogs program.

Regards

tanveer 10-24-2007 05:24 AM

Thanks for your reply. But how to stop those errors in logs.

bathory 10-24-2007 06:12 AM

Did you restart apache after deleting the 2.2 logfile?

tanveer 10-24-2007 12:36 PM

No. Do you think that may be the cause of the errors still showing?

bathory 10-25-2007 01:49 AM

Most likely apache still thinks that the size of the logfile is more than 2GB. It's better to stop apache, delete or rename the logfile and start apache again, so it creates a new one.

tanveer 10-31-2007 05:19 AM

Thanks a lot. Restarting apache worked. Then I rotated the log.


All times are GMT -5. The time now is 02:19 AM.