Turn off apache logging

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
nwelsh
Forum User
Forum User
Posts: 5
Joined: Wed Feb 21, 2007 4:09 pm

Turn off apache logging

Unread post 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?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
nwelsh
Forum User
Forum User
Posts: 5
Joined: Wed Feb 21, 2007 4:09 pm

Unread post by nwelsh »

this is for plesk 8.0 just incase that helped
nwelsh
Forum User
Forum User
Posts: 5
Joined: Wed Feb 21, 2007 4:09 pm

Unread post 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
nwelsh
Forum User
Forum User
Posts: 5
Joined: Wed Feb 21, 2007 4:09 pm

Unread post 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
nwelsh
Forum User
Forum User
Posts: 5
Joined: Wed Feb 21, 2007 4:09 pm

Unread post by nwelsh »

no luck getting this to work . . .

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