syslog-ng with samba
Hi All , Well I have a good and working version of syslog-ng with phpsyslog enabled and reports properly generated. There is only one issue . I have three different samba servers which are not sending their logs but I get other logs from the same servers like cron and logins and other stuff. Please advise. Thanks in advance. Regards Deva
Perhaps your samba daemons are writing directly to log files and not routing through syslog, as you apparently want them to. Grep your smb.conf files for "log" There is an option, "syslog=1" to enable it, which is the default. Otherwise, perhaps your filter is not matching the messages, thus not being routed to the destination option like you desire. I use something like; filter f_samba_smbd { program("smbd.*"); }; filter f_samba_nmbd { program("nmbd.*"); }; Dev Anand wrote:
Hi All ,
Well I have a good and working version of syslog-ng with phpsyslog enabled and reports properly generated.
There is only one issue . I have three different samba servers which are not sending their logs but I get other logs from the same servers like cron and logins and other stuff.
Please advise.
Thanks in advance.
Regards Deva _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- # Jesse Molina # Mail = jesse@opendreams.net # Page = page-jesse@opendreams.net # Cell = 1.602.323.7608 # Web = http://www.opendreams.net/jesse/
Yes you were absolutely right. I havent made any changes to the smb.conf to log to the syslog first . Thanks for your suggestion . I will be trying it today and update you of the status. Cheerz - Deva On 3/9/06, Jesse Molina <jesse@opendreams.net> wrote:
Perhaps your samba daemons are writing directly to log files and not routing through syslog, as you apparently want them to. Grep your smb.conf files for "log" There is an option, "syslog=1" to enable it, which is the default.
Otherwise, perhaps your filter is not matching the messages, thus not being routed to the destination option like you desire.
I use something like;
filter f_samba_smbd { program("smbd.*"); }; filter f_samba_nmbd { program("nmbd.*"); };
Dev Anand wrote:
Hi All ,
Well I have a good and working version of syslog-ng with phpsyslog enabled and reports properly generated.
There is only one issue . I have three different samba servers which are not sending their logs but I get other logs from the same servers like cron and logins and other stuff.
Please advise.
Thanks in advance.
Regards Deva _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- # Jesse Molina # Mail = jesse@opendreams.net # Page = page-jesse@opendreams.net # Cell = 1.602.323.7608 # Web = http://www.opendreams.net/jesse/
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (2)
-
Dev Anand
-
Jesse Molina