PDA

View Full Version : Disable httpd logging


gkovacs
26th October 2009, 19:55
I would very much like to be able to disable access / error logging for a site.

Currently, I can't find any option to do this in the web interface (and if I do it manually, the site config will be overwritten).

till
27th October 2009, 08:36
You can e.g remove the log lines in the vhost master template. But this will affect all websites.

Bookworm
28th October 2009, 18:21
Is there any way to disable the system from logging every site _twice_? I have a /var/log/httpd_log file that grows to 1.4 gigs a day because it logs everything for all of the individual sites - but they're already logging on their own.

(Posting in here because it's related)

computer_freak_8
31st October 2009, 04:20
Is there any way to disable the system from logging every site _twice_? I have a /var/log/httpd_log file that grows to 1.4 gigs a day because it logs everything for all of the individual sites - but they're already logging on their own.

If they use separate files, a very crude, ugly hack might be to set the duplicate(s) to log to /dev/null - although I don't know if this will work, and it may cause other issues... What do you mean by "it logs everything for all of the individual sites - but they're already logging on their own."? Like you started HTTPD twice?

Also, have you tried changing the "level" of logging? (More detail vs. less detail?)

Bookworm
5th November 2009, 04:37
Apologies for the long delay.

What it means is that /var/www/httpd/access_log

contains all server accesses to all sites.

All of the sites have their own httpd logs in /var/log/ispconfig/httpd/<sitename>

In a normal situation, if the individual sites had their own logs (error and access), then they wouldn't be logged to the system httpd log. In this case, they're duplicated.

Right now, I have four system access_log files, and they're 1193916 KB. (approximately) This is the same size as if I went through and concatenated all of the individual site logs, as if I was going to make a 'system' webalizer site.