Local time in Icinga log

From V.S.V., Inc.
Jump to: navigation, search

Local time in Icinga log

tail -f icinga.log | awk '{ print "[" strftime("%H:%M:%S", substr($0, 2, 10)) "] " substr($0, 14) }'

This only displays the time part of the time stamp because you are watching it in real time.

Thanks to Armin's Blog for the info.

Main_Page