On 11.11.2013 12:25, Marco Hoyer wrote: > Hello all, > > I would like to know if there is any possibility to modify Icinga log format. > For debugging purpose it would be nice to have a formatted timestamp but a > unix timestamp. > Using scripts to do it afterwards is a known but unliked solution ;-)
No there isn't. the log format is used by plenty of log parsers and other addons out there to present this data to the viewer and also for reporting purposes (classic ui reports, livestatus historical tables, I've run into that myself while implementing the livestatus protocol parsing the old 1.x log format into memory for providing access to the tables 'log' and 'statehist'. That format is bound to the way its defined in 1.x and I will reject all feature requests questioning a change in that either natively or with a config option in 1.x. Even though, there are some simple perl oneliners making this readable, or likewise, process it using the showlog.cgi where Ricardo put a log of effort into making this readable (might use csv output on the shell then for better readability). https://wiki.icinga.org/display/howtos/Readable+Timestamp+in+Logs kind regards, michael -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users