Bug 1899439 - Logwatch doesn't display dnf.rpm.log updates
Summary: Logwatch doesn't display dnf.rpm.log updates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch
Version: 33
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Frank Crawford
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-19 08:47 UTC by Jan ONDREJ
Modified: 2020-11-27 01:22 UTC (History)
3 users (show)

Fixed In Version: logwatch-7.5.4-3.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-27 01:22:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan ONDREJ 2020-11-19 08:47:18 UTC
Description of problem:
Logwatch doesn't display dnf-rpm logs. They are ignored according to bad date processing for old yum files.

Version-Release number of selected component (if applicable):
logwatch-7.5.3-1.fc32.noarch

How reproducible:
always after an update

Steps to Reproduce:
1. run only if your system has been updated
2. logwatch --service dnf-rpm --range yesterday --detail high
3. use --range today if your system has been updated only today

Actual results:
no results

Expected results:
should list all updates installed

Additional info:
This change should fix this:

--- /usr/share/logwatch/default.conf/logfiles/dnf-rpm.conf~     2020-02-25 10:41:40.000000000 +0100
+++ /usr/share/logwatch/default.conf/logfiles/dnf-rpm.conf      2020-11-19 09:41:47.544323877 +0100
@@ -4,6 +4,6 @@
 Archive = dnf.rpm.log-*
 
 # Keep only the lines in the proper date range...
-*ApplyStdDate = "%b %d %H:%M:%S"
+*ApplyStdDate = "%FT%H:%M:%S%z"
 
 # vi: shiftwidth=3 tabstop=3 et

Comment 1 Frank Crawford 2020-11-22 06:28:16 UTC
Thanks, your updated match is correct, although looking into it I found that they also have broken the logfile format, due to them doing their own log rotation.  Worse still it affects all versions of Fedora, so I'll get a quick patch out while working with upstream for a longer term fix, as we need to be backward compatible.

Comment 2 Fedora Update System 2020-11-23 11:54:41 UTC
FEDORA-2020-ebb1a815b7 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-ebb1a815b7

Comment 3 Fedora Update System 2020-11-24 01:26:17 UTC
FEDORA-2020-ebb1a815b7 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-ebb1a815b7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-ebb1a815b7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2020-11-27 01:22:55 UTC
FEDORA-2020-ebb1a815b7 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.