PDA

View Full Version : Apache Logs In Linux



X0dUs*
30-07-2005, 04:19 PM
Anybody know how to disable them? I need to disable the error_log mainly. I've commented out the lines in the httpd.conf but that didnt seem to do the trick. The reason for this is, is because -- my old site is still getting thousands of hits but the files arent there anymore so i'm getting a 27gb error_log like every 3 hours :sigh: its killing my cpu and memory usage.

Any ideas would be greatly appreciated. Thanks

Samwise
30-07-2005, 09:44 PM
There isn't a errorlog command to comment out in httpd.conf. As far as I am aware error logging is default and can not be changed. Two suggestions.

1) Change the LogLevel command to emerg - then only the most serious things will be reported and so should reduce the size of the log file greatly.

2) Try setting the location of the error log file to somewhere that doesn't exist. Not sure this will work but would be easy to try.

muphicks
19-08-2005, 02:35 PM
You probably don't need this answer by now, but just in case anyone else does, you could change the apache config file and tell it to use /dev/null as the path to the error_log. Its a bit hackish, but should work.

In apache2 I'm pretty sure there is an option to reduce the warning level to minimum which should only log critical errors. Whether missing pages count or not I don't know.