Disable Access Logging for certain accounts?

thewird

Well-Known Member
Jan 4, 2006
54
0
156
Toronto
I have some proxies and they create a TON of accesses per page view. Basically, they grow and grow to enormous proportions (in the gigs). I'd like to know where the access logs are and if I can disable logging for certain accounts and how? Thanks.

thewird
 

HostMerit

Well-Known Member
Oct 24, 2004
163
0
166
New Jersey, USA
cPanel Access Level
DataCenter Provider
Create a cron script to run this / clear the stats every 3 or 4 hours, so it'll never be parsed, and won't overfill your /usr directory / cause issues with logs becoming 2.0+ gig - Of course this is only if this is 'your site' / a site that wont need to be metered, etc.

echo "" > /usr/local/apache/domlogs/domain.com

Of course replacing domain.com with your domain

Maybe not the cleanest way, but hey why not? :p
 

thewird

Well-Known Member
Jan 4, 2006
54
0
156
Toronto
PWSowner said:
If you don't want any logging, just remove the log entry lines in the httpd.conf file for that VirtualHost entry, then restart apache.
Which entries would that be?

Code:
<VirtualHost 66.90.73.96>
ServerAlias atunnel.com
ServerAdmin [email protected]
DocumentRoot /home/atunnel/public_html
BytesLog domlogs/atunnel.com-bytes_log
ServerName www.atunnel.com

User atunnel
Group atunnel
CustomLog /usr/local/apache/domlogs/atunnel.com combined
Options -ExecCGI -Includes
</VirtualHost>
 

web2corp

Member
Mar 28, 2006
11
0
151
the CustomLog line is what sets the access log for that vhost