Change timestamp in nagios logfiles to readable dates

For everybody how has worked with Nagios; it logs (/var/log/nagios.log) the date in a timestamp! Quite annoying so here is how to convert it to a normal date format:

cat /var/nagios/nagios.log | while read date rest ; do timestamp=$(echo $date | sed 's/\[//;s/\]//'); echo $(date -d @$timestamp) $rest ; done


My praise about this blog is

My praise about this blog is incredibly optimistic I break this Myassignment Service blog first time and go by this well done work. Staggering post keeps up redistribution such incredible data.

It looked fascinating and I

It looked fascinating and I chose to investigate each substance and I read yours. My compliment about this blog is exceptionally positive I visit this blog first time and inspire by this good stuff work. Incredible post keeps up posting such great information. You can use this best essay for any kind of academic writing work.

Actually, I'd utilize Perl

Actually, I'd utilize Perl for that which is vastly improved at doing string seeks and coordinates and part delimited lines into exhibits and so forth. UK Assignment Expert Camp .I'd utilize Time::Local to parse dates into Unix time to sort them (well, on the off chance that they weren't at that point sorted, or on the off chance that I expected to look now and again from two diverse logfiles)

About Consultancy Articles Contact

References Red Hat Certified Architect By Robert de Bock Robert de Bock
Curriculum Vitae By Fred Clausen +31 6 14 39 58 72
By Nelson Manning [email protected]