article Apache access.log file size keeps growing

On heavily loaded web servers with many users making many requests, the access.log file will continue to grow in size until it is removed.  However, simply removing the file while Apache is running will not fix the issue.  Apache will need to be restarted and this process should be set up to run on a periodic basis.

 

As Apache states in its Log Rotation documention, the access log file typically grows 1 MB or more per 10,000 requests. The simplest method to manage this process is to set up a script to run regularly (e.g. weekly or monthly) during off-hours.  The script should contain the following lines on a Windows monitoring station:

net stop "up.time web server"

del "C:\program files\uptime software\uptime\apache\logs\access.log"

net start "up.time web server"

The script should only run for a few seconds and the web interface will only be down for those few seconds before coming back online.  No data will be lost since the data collector is not touched and only the web interface is temporarily interrupted.

Related Articles


Unable to access up.time from a web browser

RatingViews
article

By: uptime Support | Date Created: 10-25-2005 | Last Modified: 7-14-2011 | Index: 030

  3508

php error_log file growing due to deprecated messages

RatingViews
article

Example log messages: [02-Jun-2010 14:29:51] PHP Deprecated: Function split() is deprecated in C:\Program Files\uptime software\uptime\GUI\classes\protocol\ProtocolParser.inc on line 30...

By: uptime Support | Date Created: 6-5-2010 | Last Modified: 8-13-2011 | Index: 440

  3198

Adjusting the Java Heap Size

RatingViews
article

By: uptime Support | Date Created: 2-16-2006 | Last Modified: 8-5-2013 | Index: 056

  22804

phperror.log file filled with "File does not exist" errors

RatingViews
article

The default error logging level in is ALL messages. This can cause a number of messages to be registered in the phperror.log, causing it to grow to very large sizes. Some example messages are:...

By: uptime Support | Date Created: 8-13-2010 | Last Modified: 8-13-2011 | Index: 478

  2127

Query to retrieve MySQL database size

RatingViews
article

If you need to figure out how much data a MySQL database is consuming use the information_schema database and run the following: mysql> use information_schema; mysql> select table_schema,...

By: uptime Support | Date Created: 10-7-2009 | Last Modified: 8-10-2011 | Index: 386

  2747

User Comments



No comments have been posted.

Copyright © 2021 IDERA, Inc.   Legal   Privacy Statement