Syslog date format

Dan Nelson dnelson at allantgroup.com
Mon Jul 27 03:00:26 UTC 2009


In the last episode (Jul 26), Modulok said:
> Is it possible (without patching source) to change the date format
> that syslog spits out into the log files? If so, how? The manual page
> makes no mention of it.

No, if you want to change it you'd have to edit the source.  Note that the
current date format matches RFC 3164, so if you change it, you risk breaking
any parsing program that tries to read the logfiles, and if you forward
those messages to another machine, they won't recognise your timestamp and
will probably add another timestamp to the line.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list