named logs are not being reported in logwatch

Bug #1010625 reported by Jacob Smith
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
logwatch (Ubuntu)
Fix Released
Medium
Karl Stenerud

Bug Description

After upgrading from 10.04 to 12.04 named logs no longer show up in logwatch reports.

Not sure if this should be filed as a bug against rsyslog or logwatch.

There was a change to /etc/rsyslog.d/50-default.conf between 10.04 and 12.04 and a bunch of the seperate log files are now commented out and most things are only in /var/log/syslog

Since the /usr/share/logwatch/default.conf/services/named.conf lists "messages" as the log file it never reports any log data.

I changed my /etc/rsyslog.d/50-default.conf by uncommenting these lines (match the config in 10.04):

daemon.
lpr.
user.
mail.info
mail.warn
*.=debug
*.=info

The last one above sends most stuff to the messages file so named logs entries show up in logwatch reports after making the above changes.

Part of me believes rsyslog should be considered the problem but on the other hand if rsyslog is "correct" then logwatch's named.conf needs to be overiden in dist.conf to correct for the rsyslog change.

1. Description: Ubuntu 12.04 LTS
 Release: 12.04

2. logwatch:
   Installed: 7.4.0+svn20111221rev79-1ubuntu1
   Candidate: 7.4.0+svn20111221rev79-1ubuntu1
   Version table:
  *** 7.4.0+svn20111221rev79-1ubuntu1 0
         500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
         100 /var/lib/dpkg/status

bind9:
  Installed: 1:9.8.1.dfsg.P1-4
  Candidate: 1:9.8.1.dfsg.P1-4ubuntu0.1
  Version table:
     1:9.8.1.dfsg.P1-4ubuntu0.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
 *** 1:9.8.1.dfsg.P1-4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

rsyslog:
  Installed: 5.8.6-1ubuntu8
  Candidate: 5.8.6-1ubuntu8
  Version table:
 *** 5.8.6-1ubuntu8 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

3. Logwatch reports/emails should contain named log information.

4. No named log information shows up in logwatch reports/emails.

Related branches

Robie Basak (racb)
Changed in logwatch (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Do you know if Debian also has this bug? If so, the appropriate place to fix it would be in Debian first. Ubuntu will then pick up the fix, and once this is done it can be backported to 12.04 if appropriate.

Revision history for this message
Jacob Smith (jsmith-argotecinc) wrote :

I will look into it this week and respond accordingly

Revision history for this message
Craig (craig-st) wrote :

You should consider marking this bug as a duplicate of Bug #794727.

Revision history for this message
Robie Basak (racb) wrote :

Thanks Craig. It looks like you've identified the underlying cause of the problem.

I've read bug 794727. I think that marking this bug as a duplicate will conflate three issues:

1) The change in the rsyslog package to stop logging to /var/log/messages (intentional, so nominally Won't Fix).
2) The request for a symlink supplied by the rsyslog package to reduce user confusion (Wishlist).
3) Upstream logwatch assuming messages for a bunch of services, which then doesn't work due to the change in the rsyslog package to stop logging to /var/log/messages (I'd say this is Medium, since the logwatch package is directly not working as upstream intended).

I think it would be better to track these related issues separately for now - especially as the first seems contentious to some, is attracting lots of "me too" comments, and thus could possibly increase confusion as it won't be clear which of these three issues comments refer to.

Revision history for this message
Craig (craig-st) wrote :

Thanks, Robie, for your comments. All of the points you have made are right on the money, and your approach is better than marking the bug(s) as duplicates. It seems there are several logwatch bugs besides this one (including Bug #752172 and Bug #1010602 ??) that are related to upstream Bug #794727. Do you agree? If so, I would propose that all of the relevant logwatch bugs be linked to upstream Bug #794727 so that whatever the outcome, they can be tracked together.

Revision history for this message
Robie Basak (racb) wrote :

@Craig

Thanks for taking the time to find the duplicates. I agree with bug 752172 and have marked that duplicate. I disagree on bug 1010602 - samba doesn't log to /var/log/messages; it logs to /var/log/samba/. So I think that is a separate issue and have left it as-is.

Revision history for this message
Craig (craig-st) wrote :

Every service that specifies 'LogFile = messages' in its LogWatch .conf file (there are 40 of them) is now dead in LogWatch. I would propose one of the following fixes:

1) Remove the 'LogFile = messages' line completely from all of the aforementioned .conf files. The result will be that the default location(s) will be searched/parsed for messages. The current default is 'All' This is simple and straightforward. Or...

2) Change the 'LogFile = messages' line to 'LogFile = syslog' in all of the aforementioned .conf files.

Craig (craig-st)
affects: logwatch (Ubuntu) → rsyslog (Ubuntu)
Changed in rsyslog (Ubuntu):
status: Triaged → Confirmed
Craig (craig-st)
affects: rsyslog (Ubuntu) → logwatch (Ubuntu)
Revision history for this message
invtrasys (invtrasys) wrote :

This has existed for close to a year now, and (to me at least) doesn't appear to be fixed. I had this same issue some time back, and re-installed inetutils-syslogd to fix this, since logwatch doesn't work.

Is there any immediate work around?

Revision history for this message
invtrasys (invtrasys) wrote :

I wish there was an edit feature.

I found this while browsing for a fix: https://bugzilla.redhat.com/attachment.cgi?id=407611&action=diff#/usr/share/logwatch/scripts/shared/applystddate.orig_sec2

Could this be implemented into ubuntu's logwatch package?

Revision history for this message
Craig (craig-st) wrote :

@Robie: Any progreess here? I noticed that awhile back I had inadvertently changed the status from triaged to confirmed. I am unable to change it back to triaged. Robie, could you please change the status back to triaged?

Is there some reason why this has not gone anywhere? Earlier I proposed two possible fixes:

1) Remove the 'LogFile = messages' line completely from all of the aforementioned .conf files. The result will be that the default location(s) will be searched/parsed for messages. The current default is 'All' This is simple and straightforward. Or...

2) Change the 'LogFile = messages' line to 'LogFile = syslog' in all of the aforementioned .conf files.

Robie, could you comment on these? Good? Bad? If either of them are acceptable, could we move forward? If neither are acceptable, could you suggest an alternative?

Thanks.

Revision history for this message
Ben Coleman (oloryn) wrote :

Still running into this. One thought: Instead of changing all of those 'LogFile = messages' lines to 'LogFile = syslog', why not do a distribution override (/usr/share/logwatch/dist.conf/logfiles/messages.conf) to cause 'messages' to instead look at /var/log/syslog et al?

Revision history for this message
Nish Aravamudan (nacc) wrote :

At least in Trusty, it seems like named.conf refers to daemon.log and not messages/syslog anymore.

Revision history for this message
invtrasys (invtrasys) wrote :

I think this should be closed due to the time involved, and 10.04/12.04 no longer being maintained.

How can this be closed?

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Indeed, the configuration we have in /usr/share/logwatch/dist.conf (which overrides /usr/share/logwatch/default.conf) seems correct and no longer uses "messages".

Changed in logwatch (Ubuntu):
status: Confirmed → Fix Released
Changed in logwatch (Ubuntu):
assignee: nobody → Karl Stenerud (kstenerud)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.