Hi Bob, Not sure if this is better, though it could simplify things a bit if you have more destinations:
<Output out> Module om_file Exec if ($Hostname != /F5/) $outfile = 'F5.log' \ else if ($Hostname != /QNAP/) $outfile = 'QNAP.log' \ ... else drop(); File $outfile </Output> With the above it is not possible to have a log routed to multiple output files obviously (though there is add_to_route() to help with that). HTH, Botond On Wed, 16 Apr 2014 11:29:28 +0800 Bob Zscharnagk <bob.zscharn...@gmail.com> wrote: > Hi all, > > > > Is there a better way of sending output to different files than this? > > > > Bob > > > > <Output out> > > Module om_file > > File "syslog.log" > > </Output> > > <Output out_F5> > > Module om_file > > File "F5_syslog.log" > > Exec if ($Hostname !~ /F5/) drop(); > > </Output> > > <Output out_QNAP> > > Module om_file > > File "QNAP_syslog.log" > > Exec if ($Hostname !~ /QNAP/) drop(); > > </Output> > > <Output out_Switch> > > Module om_file > > File "Switch_syslog.log" > > Exec if ($Hostname !~ /10.0.1.254/) drop(); > > </Output> > > > > <Route 1> > > Path in => out,out_F5,out_QNAP,out_Switch > > </Route> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users