#3505 View report generates an incomplete report

1.490
closed-works-for-me
5
2009-09-26
2009-09-26
Ken West
No

I'm using the WLA module to generate and view reports based on my Apache access.log. Viewing a report from Webmin appears to damage the report.

Starting from an empty log output directory, generating the report (via cron or manually) works as expected: all logs are processed; it appears correctly in a browser (not Webmin).

Starting from an empty log output directory, viewing the report (via Webmin) creates a report that reflects the content of access.log.1 (!).

Viewing a previously-generated report damages the report! If I generate the report and then view it, what happens is 'the current month' gets overwritten to only shows the content of access.log.1 (I haven't tested what happens when access.log.1 has entries spanning two months or in a previous month, so I don't know if it's 'the current month' or 'the months that access.log.1 spans' which are updated).

Discussion

  • Ken West

    Ken West - 2009-09-26

    Doh!

    I discovered I needed to update /etc/webalizer/webalizer.conf to include the lines ...

    LogFile /var/log/apache2/access.log
    Incremental yes

    (LogFile was previously /var/log/apache2/access.log.1 and Incremental defaulted to 'no'.)

    So the problem was my configuration. However, it could be argued that viewing a report should mean that the report parameters are applied rather than the system-wide ones. I'll leave it to a higher intelligence to decide whether this is a bug or a feature request. I hope others learn from my mistake.

     
  • Jamie Cameron

    Jamie Cameron - 2009-09-26
    • status: open --> closed-works-for-me
     
  • Jamie Cameron

    Jamie Cameron - 2009-09-26

    Ok, that would explain it .. Webmin uses the log file path from the .conf file, and access.log.1 is typically last month's or last week's log. The typical correct path (which is usually set by default) just ends with access.log

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks