|
I am using a bespoke Apache log format with Analog
and I copied the log format details from another post on this list.
Analog processed the logs successfully but the results were completely screwed
the reason being the log format was incorrect.
I used:
set logformat {+CLOGFORMAT (%S %j %u
[%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B")}
instead of
set logformat {+CLOGFORMAT (%s %j %u
[%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "%f" "%B")}
I made several other changes to the Analog config at the same time so it
took me a while to track this one down.
Analog is executed from a Tcl script that
calculates the dates for the first and last days of week in which the script is
run. If anyone wants to see the code for this I can email it to
you.
Regards,
Patrick.
#set logformat {+CLOGFORMAT (%S %j %u
[%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B")}
set logformat {+CLOGFORMAT (%s %j %u [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "%f" "%B")} ######################################
# Call Analog using calculated dates for report. ######################################
exec cmd /c D:\\analog5.1\\analog
$logformat
\ $logfile1 \ $logfile2 \ +F$from_date \ +T$to_date \ +g$configfile \ +O$outputfile$split$to_date$split$current_time$ext |
