[syslog-ng]what´s wrong?

Denis Kot syslog-ng@lists.balabit.hu
Fri, 18 Feb 2005 15:07:14 +0200


Hello to All

I want to messages from smbd and nmbd to redirect to another logfile
I have:

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };

destination messages { file("/var/log/messages"); };
destination d_smbd { file("/var/log/smbd"); };

filter f_smbd { program(smbd.*) or match(smbd); };
filter f_nmbd { program(nmbd.*) or match(nmbd); };

log { source(src); filter(f_smbd); destination(d_smbd); };
log { source(src); filter(f_nmbd); destination(d_smbd); };
log { source(src); destination(messages); };

but messages like:
Feb 18 15:02:57 gate smbd[1089]: [2005/02/18 15:02:57, 0]
lib/util_sock.c:get_peer_addr(1000)
Feb 18 15:02:57 gate smbd[1089]:   getpeername failed. Error was
Transport endpoint is not connected
or
Feb 18 15:04:14 gate nmbd[15845]: [2005/02/18 15:04:14, 0]
nmbd/nmbd_incomingdgrams.c:process_get_backup_list_request(693)
Feb 18 15:04:14 gate nmbd[15845]:   process_get_backup_list_request:
domain list requested for workgroup MASSNET and I am not a local
master browser.

still going to /var/log/messages...
what´s wrong?

-- 
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78