[syslog-ng] C_* macros with UTC time?

Matus UHLAR - fantomas uhlar at fantomas.sk
Fri Jan 31 12:34:36 UTC 2020


Hello,

I have syslog-ng OSE 3.8 on debian 9 server (soon to be upgraded).

when I receive syslog lines using the syslog protocol, I found out that C_*
macros seem to contain date in UTC format (one hour than our current zone).

I have tried to use following template:

"${C_DATE} ${R_DATE} HOST ${HOST} FULLHOST ${FULLHOST} HOST_FROM ${HOST_FROM} FULLHOST_FROM ${FULLHOST_FROM} ${MESSAGE}\n"

with following result:

Jan 31 10:42:06 Jan 31 11:42:07 HOST fantomas FULLHOST fantomas HOST_FROM 195.80.174.185 FULLHOST_FROM 195.80.174.185 Configuration reload request received, reloading configuration;


Is there any reason why C_DATE should be in different time zone than R_DATE?
timezones are not configured on either of servers, both servers are in CET
(DST+1)

thank you
-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...


More information about the syslog-ng mailing list