Page 1 of 1

Turn off apache logging

Posted: Wed Feb 21, 2007 4:12 pm
by nwelsh
I am trying to turn off apache logging for one of my domains, because the traffic is so high and now we are moving to a hosted stats service.

I can't seem to find a way to disable the CustomLog directive in the httpd.include file that is located in the conf folder of the domain.

Is there such thing as a CustomLog Off ? that would disable it, then i could append it in the vhost.conf.

forwarding the log entries to /dev/null is not an option either.

I believe the best way to do it is to find the httpd.include template file and make the edit there and restart apache. I can't seem to find it.

Any idea on how to solve this issue?

Posted: Wed Feb 21, 2007 4:26 pm
by scott
You'd have to do that in a vhost.conf/vhost_ssl.conf. Theres no template for the httpd.include, its just generated code.

Posted: Wed Feb 21, 2007 4:28 pm
by nwelsh
this is for plesk 8.0 just incase that helped

Posted: Wed Feb 21, 2007 5:17 pm
by nwelsh
Scott,

Is this correct?

SetEnvIfNoCase Host domain\.com nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog


Basically if request is from host domain.com then set nolog and use the env=!nolog

doesn't seem to work for me . . still getting logging when i do tail-f 100 access_log

Posted: Wed Feb 21, 2007 5:33 pm
by nwelsh
Based on this information:
http://www.bitweaver.org/wiki/Advanced+ ... ffic+Sites


SetEnvIf Request_URI "(\.gif|\.png|\.jpg|\.css|\.js|\.php|\.html|\.ico)$" nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog

Still doesn't seem too work

Posted: Wed Feb 21, 2007 6:18 pm
by nwelsh
no luck getting this to work . . .

giving up on it. Wierd that it would be so hard to turn off logging.