Disable httpd logging

Discussion in 'Feature Requests' started by gkovacs, Oct 26, 2009.

  1. gkovacs

    gkovacs Member

    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).
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can e.g remove the log lines in the vhost master template. But this will affect all websites.
     
  3. Bookworm

    Bookworm Member

    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)
     
    Last edited: Oct 28, 2009
  4. computer_freak_8

    computer_freak_8 New Member

    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?)
     
  5. Bookworm

    Bookworm Member

    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.
     

Share This Page