Menu

logwatch not analyzing logfiles

Help
2016-11-08
2016-11-08
  • 𝖘𝖈𝖆𝖗

    I'm using version 7.4.3 and i have created /etc/logwatch/conf/logfiles/http.conf with the following line:
    LogFile = /opt/web/WEBLOGS/*access_log

    which matches our virtual host log files. But the output of logwatch is not parsing these files at all, because i see things like "0.00 MB transferred in 4 responses" in the httpd section, but there are hundreds of responses among the log files. (the 4 responses in this case are coming from the /var/log/httpd/ssl_access_log). So i don't understand what i did wrong. How do i get logwatch to analyze these additional logfiles?

    Thanks

     
  • Orion Poplawski

    Orion Poplawski - 2016-11-08

    Unfortunately logwatch converts everything in the config files to lower case, so WEBLOGS becomes weblogs. This needs to get fixed, but not sure how big of a task this is.

     
  • Bjorn

    Bjorn - 2016-11-08

    I think you can retain the upper/mixed case if you delimit the value in double quotes:
    LogFile = "/opt/web/WEBLOGS/*access_log"

    I agree it needs a better solution, but I think it is deeply baked into both the code and existing configurations, so I don't think it is an easy fix.

     

Log in to post a comment.