Mailinglist Archive: opensuse (3394 mails)
| < Previous | Next > |
[SLE] Date format in syslog files: can they be set to iso8601?
- From: e.maryniak@xxxxxxxxx (Eric Maryniak)
- Date: Tue, 07 Mar 2000 17:18:57 +0100
- Message-id: <4.3.2.20000307164354.0455be30@localhost>
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 <e.maryniak@xxxxxxxxx>
Home page: http://pobox.com/~e.maryniak/
University of Amsterdam, Department of Psychology.
Tel/Fax: +31 20 5256853/6391656. Internet: http://www.neuromod.org/
My software never has bugs.
It just develops random featur
zero division: core dumped.
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |