[syslog-ng] Fulldate in log files
Gustavo Mendes de Carvalho
gmcarvalho at gmail.com
Thu Feb 2 14:10:27 CET 2006
Hi All,
Actually, I have my syslog-ng configured as shown bellow.
Jan 29 12:17:01 linux1 CRON[31468]: message itself
My conf file has this statements
# begin of log conf file
source s_all { unix-stream("/dev/log"); internal(); };
destination d_auth { file("/var/log/auth.log"); };
destination d_syslog { file("/var/log/syslog"); };
destination d_cron { file("/var/log/cron.log"); };
filter f_auth { facility(auth, authpriv); };
filter f_syslog { not facility(auth, authpriv); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
log { source(s_all); filter(f_auth); destination(d_auth); };
log { source(s_all); filter(f_syslog); destination(d_syslog); };
log { source(s_all); filter(f_cron); destination(d_cron); };
log { source(s_all); filter(f_daemon); destination(d_daemon); };
# end of log conf file
How can I do to put a full date (including year) in this logfile ?
Thanks in advance
Gustavo
More information about the syslog-ng
mailing list