Disable logs for a specific domain name?

erick_paper

Well-Known Member
Apr 19, 2005
245
0
166
Hi, I want logs for all my domains under WHM, except for some selected ones. Is there a way I can do this selective disabling instead of disabling logging for all? Thanks!
 

Damian

Well-Known Member
Oct 1, 2001
108
7
318
erick_paper said:
Hi, I want logs for all my domains under WHM, except for some selected ones. Is there a way I can do this selective disabling instead of disabling logging for all? Thanks!
This is just a suggestion. You could probably create a symlink to /dev/null in the apache domlogs directory fot any domain that you do not require stats for. Restart the service after doing that so that changes are picked up.
 

erick_paper

Well-Known Member
Apr 19, 2005
245
0
166
Thanks, but what will this do -- will this stop the logging process for that domain altogether, or just delete the log files once they are created? I would like to stop the process altogether, because my site is too busy and the stats generation takes like 6 hours!
 

24x7team

Well-Known Member
Jan 16, 2006
67
0
156
India
Logs

YOu may need to remove the logs section in the apache virtualhost entry for the domain name for which you do not need the logs.

eg BytesLog, CustomLogs.

the entire line needs to be removed.

Restart apache thereafter