Tuesday, June 20, 2023

Analog for Apache log processing

Our old favourite analog - the analog.cx domain no longer works, an alternative is either the archive.org wayback machine archived version or analog.gsp.com or some such hosting provider.

Analog came in handy when there was a request for some log info from one of our servers.

https://serverfault.com/questions/25769/how-to-make-analog-to-parse-only-one-week-of-logs#25848

But on our server, there was only 14 days of apache log data being retained, so the request had to be handled using other techniques.

Images are inside
 /usr/share/analog/images
need to manually copy to the analog run directory for them to be properly linked in the generated html files, for the simplistic configuration at /etc/analog.cfg
 
LOGFILE /home/theuser/analog/logcopy/access.lo*
FROM 190101
TO 231231
# LOGFILE /old/logs/access_log.*
OUTFILE total.html
####
REQLINKINCLUDE pages
REFLINKINCLUDE *
REDIRREFLINKINCLUDE *
FAILREFLINKINCLUDE *
SUBBROW */*
SUBTYPE *.gz,*.Z
####
PAGEINCLUDE *.php
and all the default typeinclude definitions.



No comments:

Post a Comment