[syslog-ng] UTC in C_ macros?

Matus UHLAR - fantomas uhlar at fantomas.sk
Tue Feb 4 13:38:10 UTC 2020


Hello,

I have tried to RTFS but no success.
are C_ dates in UTC or should they be?

On 31.01.20 13:34, Matus UHLAR - fantomas wrote:
>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)


-- 
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.
99 percent of lawyers give the rest a bad name.


More information about the syslog-ng mailing list