This one is driving me a bit crazy. How do I route a message from nxlog received by syslog-ng based on the program name? It should be self explanatory but it isn't working correctly. The messages are dropped into my general log file for syslog-ng without the filtering applied.
I'm sending IIS logs like this with nxlog:
<Input W3SVC>
Module im_file
...
Exec $SourceName = 'IIS';
...
</Input>
<Route W3SVC>
Path W3SVC => IIS_Syslog
</Route>
<Output IIS_Syslog>
Module om_udp
Host xxx
Port xxx
Exec to_syslog_ietf();
</Output>
Which sends to a syslog-ng server which should catch with the following filter.
filter f_iis {
source ('IIS');
};
or alternatively I've tried the following.
filter f_iis {
program ('IIS');
};