Helo syslog guru's ;)
Current entries in syslogd files like /var/log/{messages,warn} etc. look like:
Mar 6 18:15:30 yourhost somed[pid]: bla from somed.
However, I would like to have the date in ISO 8601 format, which is
CCYY-MM-DD HH:MM:SS ref: http://www.cl.cam.ac.uk/~mgk25/iso-time.html
(strictly speaking this is not true; there are several formats, but the
so-called extended format looks like: CCYY-MM-DDTHH:MM:SS, note the "T"
conjunctor).
But anyways, I would like to have something like:
2000-03-06 18:15:30 yourhost somed[pid]: bla from somed.
because I find it has better sorting characteristics and lends itself better
to unified processing (note that more and more programs, like Samba and gpg
are already using this format).
I could not find, however, how to influence this format (well, other than
recompiling syslogd ;-), as can be done with some other programs where you
can influence a LogFormat strftime(3)-wise like %{%Y-%m-%d %H:%M:%S}t ?
(I looked in the man pages of syslog, syslogd and syslog.conf and looked
in /etc/syslog.conf).
Or should I set some LOCALE that supports this date format and is used by
programs such as syslogd?
Bye-bye,
Eric Maryniak
--
Eric Maryniak