Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following messages are dumped into the server logs endlessly. This limits the usefulness of logwatch. Is there a way to fix whatever the issue is or to turn off these messages? Reducing the log level in smb.conf does not seem to reduce these messages:

Jun 9 14:28:37 xxx nmbd[5627]: Unable to find the Domain Master Browser name MYGROUP<1b> +for the workgroup MYGROUP. Jun 9 14:28:37 xxx nmbd[5627]: Unable to sync browse lists in this workgroup. Jun 9 14:43:37 xxy nmbd[5627]: [2011/06/09 14:41:08, 0] +nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)

share|improve this question
add comment

2 Answers 2

This link [http://lists.samba.org/archive/samba/2001-April/026763.html] suggests setting local master and preferred master to yes to end this message, however these are already set in smb.conf.

share|improve this answer
add comment

Aside from the obvious answer of: fix the issue and stop the logging :)

You could use a dirty hack to have syslog write to a fifo (see mkfifo(1)) and have some program read from that fifo and write to your log file, but that's a real dirty hack.

This one is a dirty hack, but less of a one. I hate a daemon running like that in the background reading from a fifo. I'd use syslog-ng instead of the standard syslog (probably rsyslog) that you're using.

syslog-ng is a bit more of a learning curve, but worth it really. A directive something like:

destination samba-log { program "/usr/local/bin/samba-ignore.sh"; };

Then write a small shell script /usr/local/bin/samba-ignore.sh to read from STDIN and ignore (i.e. grep -v) out the lines you want and output to /var/log/samba.log or similar.

Personally I'd do everything in my power to stop it logging that particular issue, including going to the source and figuring out what is wrong up to and including rolling my own RPM with a fix. But I'm OCD like that ;)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.