In my daily report, I always have a lot of stuff in the "Unknown
entries" section:
Unknown entries from news log file:
First 50 / 3351 lines (1.5%)
2023-07-23T04:15:01.882775+00:00 localhost innd: ctlinnd command E
This is Debian 12, if that's helpful.
This is Debian 12, if that's helpful.
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#rsyslog-timestamp-change-affects-logcheck
rsyslog now defaults to “high precision timestamps” which may affect
other programs that analyze the system logs.
Oh, this is an unexpected change which unfortunately breaks daily Usenet reports as innreport does not cope with that new setting :-/
I bet inn2 is not the only package which broke with that change...
It's probably worthwhile a fix in Debian stable (12) as innreport is broken. I'll send a mail to Marco (the inn2 package maintainer) as I am unsure he reads us here.
+ # Convert a high-precision timestamp like + # 2023-07-23T04:15:01.882775+02:00 + # to the low-precision timestamp used by innreport. + if ($_ =~ /^(\d+-\d+-\d+T\d+:\d+:\d+)(\.\d+)?([+-]\d+):?(\d+)/) { + my $t = Time::Piece->strptime( + "$1 $3$4", + "%Y-%m-%dT%T %z" + );
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#rsyslog-timestamp-change-affects-logcheck
rsyslog now defaults to “high precision timestamps” which may affect
other programs that analyze the system logs.
Oh, this is an unexpected change which unfortunately breaks daily
Usenet reports as innreport does not cope with that new setting :-/
FWIW, the high-precision timestamp is enabled with a line like this
one in rsyslog.conf:
$ActionFileDefaultTemplate RSYSLOG_FileFormat
instead of RSYSLOG_TraditionalFileFormat (low-precision).
Anyway, innreport should really support high-precision
timestamps. Could you please try the following patch and tell me
whether it works for your next daily reports?
rsyslog now defaults to “high precision timestamps” which may affect >> other programs that analyze the system logs.
Oh, this is an unexpected change which unfortunately breaks daily
Usenet reports as innreport does not cope with that new setting :-/
Ah, I see... the high-precision timestamps are actually pretty nice
because syslog's old year-less timestamps were a constant source of pain
to me, but of course it's breaking stuff...
I applied the patch to innreport; I assume it'll get blown away with the
next time the Debian package updates, but maybe by then we'll have an official fix in.
Ran news.daily manually and the report looks good, no more unknown
entries section!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 57:32:37 |
Calls: | 6,712 |
Files: | 12,243 |
Messages: | 5,355,561 |