Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2009 22:00:24 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Modulok <modulok@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Syslog date format
Message-ID:  <20090727030023.GV63413@dan.emsphone.com>
In-Reply-To: <64c038660907261640o478e38f2p82d1e66942d2fcb0@mail.gmail.com>
References:  <64c038660907261640o478e38f2p82d1e66942d2fcb0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090727030023.GV63413>