samba logs are not being reported in logwatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logwatch |
Unknown
|
Unknown
|
|||
logwatch (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After upgrading from 10.04 to 12.04 samba logs no longer show up in logwatch reports.
There was a change to /usr/share/
LogFile=samba/* was changed to LogFile=samba/*.log
In the samba package the default smb.conf file has logging defined as (no change 10.04-12.04):
log file = /var/log/
Since files are log.* they are no longer parsed by logwatch because logwatch only looks for *.log
1. Description: Ubuntu 12.04 LTS
Release: 12.04
2. logwatch:
Installed: 7.4.0+svn201112
Candidate: 7.4.0+svn201112
Version table:
*** 7.4.0+svn201112
500 http://
100 /var/lib/
samba:
Installed: 2:3.6.3-2ubuntu2.1
Candidate: 2:3.6.3-2ubuntu2.2
Version table:
2:
500 http://
*** 2:3.6.3-2ubuntu2.1 0
500 http://
100 /var/lib/
2:
500 http://
3. Logwatch reports/emails should contain samba log information.
4. No samba log information shows up in logwatch reports/emails.
Possible fix is to distribute the attached samba.conf in /usr/share/
It contains "LogFile=samba/*" which would revert logwatch's behavior to what it was in 10.04 for samba logs.
This will allow any type of log file naming you wish in your samba config in the /var/log/samba/ folder to be correctly parsed by logwatch.
Changed in logwatch (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: |
added: regression-release removed: regression |
tags: | added: precise trusty |
Changed in logwatch (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in logwatch (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Here is the source commit that changed the samba.conf. The reason listed was:
"samba.conf patch to deal with cores dir -mgt"
I have no idea what that means honestly but maybe it would be of help to know...
http:// logwatch. svn.sourceforge .net/viewvc/ logwatch? view=revision& revision= 5