** Description changed: [Impact] dhcp "lease under threshold" messages aren't handled by logwatch, and thus end up in the "Unmatched Entries" section, one per event. These innocuous notices clutters up the logwatch reports unnecessarily. - [Test Case] $ export CODENAME="focal" $ lxc launch ubuntu:${CODENAME} test-logwatch $ lxc exec test-logwatch -- bash # apt-get update # apt-get dist-upgrade -y # apt-get install -y logwatch # wget https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1578001/+attachment/5407062/+files/unmatched-entries-isc-dhcp-server%3Akern.log # cat unmatched-entries-isc-dhcp-server:kern.log >> /var/log/kern.log # logwatch --detail High --service all --range all --output stdout Without the fix, there will be unmatched entries from reuse_lease regarding lease age thresholds; with the fix there will be no such messages. (Note: For testing it's not really necessary to trigger the original condition that produces the log entry, since for Logwatch the purpose is more about making sure the entry is detected and processed appropriately.) - [Regression Potential] Since logwatch filters logs for errors pertinent to administrators, standard things to watch out for are undesired changes in this filtering behavior, such as flagging or failing to flag issues differently than before, other than the specific messages being filtered with this change. - [Fix] - - [Discussion] [Original Report] Under the "dhcpd" heading, the following isc-dhcp-server lines appear as unknown: Unknown Entries: Config file: /etc/dhcp/dhcpd.conf: 1 Time(s) Database file: /var/lib/dhcp/dhcpd.leases: 1 Time(s) PID file: /run/dhcp-server/dhcpd.pid: 1 Time(s) Server starting service.: 1 Time(s) reuse_lease: lease age 16261 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 16268 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 16391 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 16394 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 1728 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 17474 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 17475 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 26177 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 26179 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 28852 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 28854 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 3064 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 3229 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 35305 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 35325 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 35326 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 49459 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 52188 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) reuse_lease: lease age 811 (secs) under 25% threshold, reply with unaltered, existing lease: 1 Time(s) ----------------------------------------------------------------- Description: Ubuntu 16.04 LTS Release: 16.04 logwatch: Installed: 7.4.2-1ubuntu1 Candidate: 7.4.2-1ubuntu1 Version table: *** 7.4.2-1ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages 100 /var/lib/dpkg/status isc-dhcp-server: Installed: 4.3.3-5ubuntu12 Candidate: 4.3.3-5ubuntu12 Version table: *** 4.3.3-5ubuntu12 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1578001 Title: unmatched entries for isc-dhcp-server To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1578001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs