Log time stamps

Janet Post janetpost at gmail.com
Mon Jul 14 01:58:39 CEST 2008


Hello,

If you would like to see the log files with a human-readable timestamp:

 perl -pe 's/(\d+)/localtime($1)/e' logfile

Janet

(Mark:  sorry for the double emails...I didn't hit reply-to-all the first
time.)


On Sun, Jul 13, 2008 at 4:24 PM, Marc Powell <marc at ena.com> wrote:

>
> On Jul 13, 2008, at 10:57 AM, Jeff Koch wrote:
>
> >
> > Can somebody please explain what these timestamps mean in the logs:
> >
> > [1215955229.159192] [032.0] [pid=885] Notification viability test
> > failed.
> >
>
> http://www.nagios.org/faqs/viewfaq.php?faq_id=68
> http://www.nagios.org/faqs/viewfaq.php?faq_id=70
>
> > Does nagios have an option to use normal y:m:d:h:m:s or some other
> > human
> > readable timestamps in the logs?
>
> No. The logs are primarily for nagios' use and it's significantly
> easier to work with epoch time than the various and conflicting human
> readable versions of such.
>
> --
> Marc
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080713/cbff6563/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list