Nov 5, 2022, 09:55 by scdbac...@gmx.net: > Hi, > > local10 wrote: > >> Any ideas as to get the old syslog date format back? >> > > The internet points to /etc/rsyslog.conf and in there: > > # > # Use traditional timestamp format. > # To enable high precision timestamps, comment out the following line. > # > $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat >
Doesn't seem to work for me. I didn't have "$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat" line in the /etc/rsyslog.conf file so I added it but it didn't change the syslog date format for some reason: # cat /etc/rsyslog.conf ... $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # systemctl restart rsyslog.service # # systemctl status rsyslog.service ● rsyslog.service - System Logging Service Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; preset: enabled) Active: active (running) since Sat 2022-11-05 06:25:57 EDT; 5s ago TriggeredBy: ● syslog.socket Docs: man:rsyslogd(8) man:rsyslog.conf(5) https://www.rsyslog.com/doc/ Main PID: 157593 (rsyslogd) Tasks: 4 (limit: 8813) Memory: 2.7M CPU: 6ms CGroup: /system.slice/rsyslog.service <http://system.slice/rsyslog.service> └─157593 /usr/sbin/rsyslogd -n -iNONE Nov 05 06:25:57 tst systemd[1]: rsyslog.service: Deactivated successfully. Nov 05 06:25:57 tst systemd[1]: Stopped System Logging Service. Nov 05 06:25:57 tst rsyslogd[157593]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2210.0] Nov 05 06:25:57 tst systemd[1]: Starting System Logging Service... Nov 05 06:25:57 tst rsyslogd[157593]: [origin software="rsyslogd" swVersion="8.2210.0" x-pid="157593" x-info="https://www.rsyslog.com"] start Nov 05 06:25:57 tst systemd[1]: Started System Logging Service. # cat /var/log/syslog ... 2022-11-05T06:25:57.617308-04:00 tst systemd[1]: Stopping System Logging Service... 2022-11-05T06:25:57.672637-04:00 tst systemd[1]: rsyslog.service: Deactivated successfully. 2022-11-05T06:25:57.672835-04:00 tst rsyslogd: [origin software="rsyslogd" swVersion="8.2210.0" x-pid="157518" x-info="https://www.rsyslog.com"] exiting on signal 15. 2022-11-05T06:25:57.672895-04:00 tst systemd[1]: Stopped System Logging Service. 2022-11-05T06:25:57.673264-04:00 tst rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2210.0] 2022-11-05T06:25:57.673332-04:00 tst systemd[1]: Starting System Logging Service... 2022-11-05T06:25:57.673386-04:00 tst rsyslogd: [origin software="rsyslogd" swVersion="8.2210.0" x-pid="157593" x-info="https://www.rsyslog.com"] start 2022-11-05T06:25:57.673437-04:00 tst systemd[1]: Started System Logging Service. Regards,