Mailing List Archive

liblogging gmtime vs syslog/logger localtime
liblogging/stdlog.h -> rsyslogd writes gmtime in the logs, while
(syslog->journald or /usr/bin/logger) -> rsyslogd writes localtime.

Can we configure (liblogging vs /usr/bin/logger) -> rsyslogd to log
the same timestamps, on Red Hat Linux? Including Daylight Savings
Time changes, without restarting the process which uses liblogging.

Hallvard
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
Re: liblogging gmtime vs syslog/logger localtime [ In reply to ]
I should have added, I do not want to switch all the logs on the
host to gmtime. I could change the logs for just this daemon.
________________________________________
From: Hallvard Breien Furuseth
Subject: [rsyslog] liblogging gmtime vs syslog/logger localtime

liblogging/stdlog.h -> rsyslogd writes gmtime in the logs, while
(syslog->journald or /usr/bin/logger) -> rsyslogd writes localtime.

Can we configure (liblogging vs /usr/bin/logger) -> rsyslogd to log
the same timestamps, on Red Hat Linux? Including Daylight Savings
Time changes, without restarting the process which uses liblogging.
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
Re: liblogging gmtime vs syslog/logger localtime [ In reply to ]
On 15.03.2021 17:02, Hallvard Breien Furuseth via rsyslog wrote:
> Can we configure (liblogging vs /usr/bin/logger) -> rsyslogd to log
> the same timestamps, on Red Hat Linux? Including Daylight Savings
> Time changes, without restarting the process which uses liblogging.

Duh, sorry, I tried 'TZ=UTC logger' but I had journald between it and
rsyslogd, that's what ate the TZ change.
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.