The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache has stopped writing to account access logs

Discussion in 'EasyApache' started by Archmactrix, Aug 3, 2014.

  1. Archmactrix

    Archmactrix Well-Known Member

    Joined:
    Jan 20, 2012
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Apache has stopped writing to the account access logs on my server (for my personal use). It stopped the day after I enabled master global access log with custom LogFormat.

    I did the configuration using this file:
    /var/cpanel/templates/apache2_4/vhost.local

    The web statistics sofware included in cPanel are not being updated.

    These two logs are being updated:
    /usr/local/apache/logs/access_log
    /var/log/httpd/vhost-access_log (the master access log)

    I did edit the vhost.local file in this way:

    Code:
    
    The default values here untouched
    
    [%- END %]
    
    LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %k %D" vcommon
    CustomLog /var/log/httpd/vhost-access_log vcommon
    
    </VirtualHost>
     
    #1 Archmactrix, Aug 3, 2014
    Last edited: Aug 3, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Check to see if new data is populated to your domain access logs (/usr/local/apache/domlogs), as that's where statistics are generated from. Do you continue to experience the issue when your custom entry is removed?

    Thank you.
     
  3. Archmactrix

    Archmactrix Well-Known Member

    Joined:
    Jan 20, 2012
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thank you Michael for your reply,

    the user web logs are being written to now after I disabled the custom log.

    I wasn't aware of this problem when I enabled the custom log.

    My intention was just to have custom logformat and global access log for all my sites on the server, but keeping my user web logs and the statistics data.
     
Loading...

Share This Page