Separate Samba Log from Syslog

I have a samba share configured to allow logging of file access:

Code:
[home]
   comment = Home Directory
   path=/home/%u
   vfs objects = full_audit
   full_audit:prefix = %u|%I|%m|%s
   full_audit:success = open opendir read pwrite unlink rmdir pread write sendfile ftruncate
   full_audit:failure = connect disconnect open close read pread write prwite sendfile ftruncate lock readlink
   full_audit:facility = LOCAL7
   full_audit:priority = ALERT

...

I added this line to /etc/newsyslog.conf:

Code:
/var/log/samba/audit.log                640  50    100  *     JC

Lastly, I added this line to /etc/syslog.conf:

Code:
local7.*                                        /var/log/samba/audit.log

Samba has this line in the global section:

Code:
syslog = 0

My problem is that the log data that I am expecting to see in the samba log file is also being sent to syslog. I would very much prefer to keep these separate, as the samba log fills up swiftly and other relevant messages in the syslog won't be as noticeable.

How can these be separated?
 
Figured this out:

In /etc/syslog.conf, found this line:

Code:
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err    /var/log/messages

and added:

Code:
*.notice;LOCAL7,authpriv.none;kern.debug;lpr.info;mail.crit;news.err    /var/log/messages

Also changed the

Code:
local7.*                                        /var/log/samba/audit.log

to

Code:
LOCAL7.ALERT                                    /var/log/samba/audit.log

so that /var/log/messages is no longer being spammed by samba file log material.

Don't know whether CAPS is relevant or not.
 
Back
Top