[analog-help] Unix time stamp (%U) has 13 characters

Klaus Johannes Rusch KlausRusch at atmedia.net
Thu Aug 23 01:26:37 PDT 2007


frommi.nol at web.de wrote:
> I am using analog to evaluate SAP J2EE engine log files. Unfortunately it seems to be impossible to get the unix time stamp from the 13 character string. It seems that they add ms without '.' to the time stamp. Do you have any ideas?
>   
You will need to customize analog to recognize an additional timestamp 
format with milliseconds, or preprocess the log files to separate or 
strip the milliseconds, something like

perl -npe 's/^(#[^#]*#[^#]*#\d+)(\d\d\d#.*)$/\1.\2/'

-- 
Klaus Johannes Rusch
KlausRusch at atmedia.net
http://www.atmedia.net/KlausRusch/



More information about the analog-help mailing list