lbeachmike

Well-Known Member
Dec 27, 2001
307
4
318
Long Beach, NY
cPanel Access Level
Root Administrator
Hi there -

I see that awstats is using a ton of server CPU resource on one of my accounts with only a 90 meg log file, which is smaller than many other accounts.

I'm unsure how to determine why this is the case.

Outside of troubleshooting, I'm wondering two things -

1. Is there a way to turn off awstats processing on a single domain?

2. How do I veryify that the logs are indeed being rotated?

Thanks.

Mike
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
The simplest thing to do her is use WHM's "tweak settings" to configure the server
to delete log files after the stats program has been run.

This will keep the logs small and improve stats updating performance
 

lbeachmike

Well-Known Member
Dec 27, 2001
307
4
318
Long Beach, NY
cPanel Access Level
Root Administrator
Actually, I just confirmed my settings, and indeed I am setup that way. I already have the following option enabled in Tweak Settings -

> Delete each domain's access logs after stats run

This appears to be the setting you are referring to.

Any further suggestions?

Thanks.

Mike
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
One way to disable the awstats for the a domain is to set the permission of the awstats conf file, ie /home/username/tmp/awstats/awstats.conf to 000 and chattr it to +1. Now stats script will skip it.

You may check the size of the domlog files at /usr/local/apache/domlogs.
issue this command to check.
ls -lh --sort=size | less

Clear all those files which are more than 200 Mb.