[syslog-ng] timestamp in log files
Balazs Scheidler
bazsi at balabit.hu
Sun Nov 12 12:16:51 CET 2006
On Sat, 2006-11-11 at 01:17 -0200, Gustavo Mendes de Carvalho wrote:
> He All,
>
> Does anybody knows any idea to include a date in unix timestamp format
> into a log file, together with a message ?
> Something like
> Nov 11 05:15:34 *1163214934 *s_sys at 10.9.8.7 sshd[13037]: Accepted
> publickey for ROOT from 10.0.0.2 port 1355 ssh2
you need the $UNIXTIME macro, see
http://www.balabit.hu/products/syslog-ng/reference-2.0/syslog-ng.html/index.html#macros
--
Bazsi
More information about the syslog-ng
mailing list