syslog reporting incorrect time
First thanks for ‘-Z’ option in syslog. It appears that syslog is displaying the incorrect time.
The appropriate files were created/symlink’ed after running setup-alpine timezone
localhost:~# cat /etc/alpine-release 3.6.2 localhost:~# ls -l /etc/localtime lrwxrwxrwx 1 root root 30 Sep 13 20:40 /etc/localtime -> /etc/zoneinfo/America/New_York localhost:~# ls -l /etc/zoneinfo/America/New_York -rw-r--r-- 1 root root 3545 Sep 13 20:40 /etc/zoneinfo/America/New_York localhost:~# cat /etc/conf.d/syslog SYSLOGD_OPTS="-Z"
The ‘-Z’ was also used in /etc/conf.d/syslog.
When running date, the correct time is shown:
localhost:~# date Wed Sep 13 20:59:45 EDT 2017
When creating a log entry using logger, the timestamp is incorrect (one hour behind):
localhost:~# logger "message 1" localhost:~# tail -1 /var/log/messages Sep 13 19:59:53 localhost user.notice root: message 1
(from redmine: issue id 7818, created on 2017-09-14, closed on 2019-06-19)
- Revision 397f0cd9 on 2019-02-15T22:23:00Z:
main/busybox: upgrade to 1.30.0 Notable changes: * The sysklogd -Z option has been removed in favor of -t option which has been added by upstream. * Our own nologin.c applet has been replaced by an upstream nologin shell applet. * New bc applet. OK ncopa@ Fixes #9279 Fixes #7818