Apache has stopped writing to account access logs
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:
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
-
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. 0 -
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. 0
Please sign in to leave a comment.
Comments
2 comments