SYSTEM INFORMATION | |
---|---|
OS type and version | UBUNTU 24.04.1 |
Webmin version | 2.202 |
Virtualmin version | 7.30.3 |
Webserver version | Apache 2.4.58 |
Related packages | rsyslog 8.2312 postfix imap |
Upon setting up a new Ubuntu 24.04 server and configuring a bunch of mail users I was unable to see their last IMAP/POP/SMTP login date/time from the GUI or via CLI list-users
After looking at the mail logs I see that rsyslog changed the default date format to this:
2025-01-05T00:10:34.660356-05:00
This seems to break Virtualmin’s ability to decode the date. I used a workaround by adding the following to the
/etc/rsyslog.conf file
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
I placed this after the global directives.
Now the date is logged in the old format.
Jan 7 12:04:48
And last login times are now detected.
Perhaps Virtualmin should detect this new format and use it directly, or the install script should change rsyslog to the old format at install time.
Not sure if this affects other OS like Debian but I do see this format on another non-virtualmin Debian 12 so it is possible.
As an update to this, I believe the change was made by Debian in rsyslog 8.2210.0-3 (2022-10-30)
Enable high precision timestamps with timezone information.
Use the default rsyslog file format, which provides several benefits
like:
- sortable
- time zone information
- sub-second time resolution
(Closes: #475303)
Us ‘fossils’ still use rsyslog but it is falling out of favor for the journal stuff. Sigh. I gotta break down and learn it sometime.