Home Forums OS X Server and Client Discussion Web How to make awstats work with the odd postfix behind your access_log. file

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #361055
    puxuradude6
    Participant

    I couldn’t automate awstats to load my logfile because apple decided it was very smart to add the weird ‘count back to the seventies’ postfix. And since you can’t use wildchars in your LogFile rule I made this:

    LogFile=”/usr/local/awstats/tools/logresolvemerge.pl /var/log/httpd/access_log.* |”

    This rule calls upon an external logfile merger that combines all the logsin a specified directory. As you can see you can use wildchars here so by merging one logfile with itsself it works.

    Dirty but effective. Combine it with the tip found in another forum thread about not rotating the logs but by purging them yourself in awstats and you’re done !

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed