Date in Log File
Andreas Ericsson
ae at op5.se
Mon Apr 21 16:29:50 CEST 2008
Steve Pribyl wrote:
>> Epoch time is 500000 times easier to parse from programs.
>>
> I am not going to disagree with you there. Is there a way to get both in
> there. I will happily write the patch it there is some agreement.
>
There is no agreement, since you'd have to support the current format and
whatever new format you concoct, and you need to support them by trial and
error. Since there are (for large installs), several million lines of logdata
to parse when creating fe an availability-report, slowing down logparsing
while at the same time making it more complicated is a bad idea.
> Epoch is hard to read by people.
>
People can use perl, or naglog.c (attached) to get the date in a sort-of
human-readable format. As soon as you start fiddling with such things
though, you'll find that "human-readable" means different things in
different parts of the world.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------- next part --------------
A non-text attachment was scrubbed...
Name: naglog.c
Type: text/x-csrc
Size: 1058 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080421/9382df9e/attachment.c>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list