Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disabling apache logging to access.log [closed]

Tags:

I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk.

I've tried changing http.conf and directing stuff to /dev/null, but none of it worked, as most of it was the Error logging.

Any idea anyone?

Thanks

like image 751
Alon_T Avatar asked Nov 25 '12 15:11

Alon_T


People also ask

Can I delete Apache access log?

If in use, deleting the log will make apache reload to re-open the just deleted file.

What is Apache access logs?

What are Apache Access Logs? As mentioned above, the Apache access log is one of several log files produced by an Apache HTTP server. This particular log file is responsible for recording data for all requests processed by the Apache server.

Where are Apache access logs stored?

By default, you can find the Apache access log file at the following path: /var/log/apache/access. log. /var/log/apache2/access.


1 Answers

Just comment the areas where logging was set.

On,

httpd.conf virtual hosts configurations (virtual.conf, domain.conf etc) 

For something like

CustomLog logs/access_log common ErrorLog logs/error_log 

Just do,

#CustomLog logs/access_log common #ErrorLog logs/error_log 
like image 145
Rum Verse Avatar answered Oct 01 '22 17:10

Rum Verse