Keep It Simple, Stupid | |
PerlMonks |
Re: Parsing arbitrarily-formatted timestamps out of log file entriesby chuckbutler (Monsignor) |
on Dec 11, 2009 at 23:44 UTC ( [id://812464]=note: print w/replies, xml ) | Need Help?? |
Do not underestimate using unpack for extracting a date and/or time sequence from a record. Also, split the record, using split, into manageable fields. Normally, there is a TAB or a COLON separating the fields. A Google of “unix log file format” may also shed some light. Good luck.
In Section
Seekers of Perl Wisdom
|
|