Hi,
You have two options. You can use two outputs and a filter, e.g.:
<Output test>
Module om_file
Exec if $Message !~ /SOMETHING/' drop();
File "/var/nxlog/test.log"
</Output>
The other option is to use a dynamic File in one om_file instance:
<Output test>
Module om_file
Exec if $Message =~ /SOMETHING/' { \
$dst = 'file1';
} \
else $dst = 'file2';
File '/var/nxlog/' + $dst + '.log'
</Output>
Regards,
Botond
On Mon, 4 Nov 2013 07:30:57 -0700
"Paul Fontenot" <[email protected]> wrote:
> Hello,
>
> I am very new to nxlog and I have a question that I've not figured out, if I
> have an output writing everything to a single log
>
> <Output test>
> Module om_file
> File "/var/nxlog/test.log"
> </Output>
>
> Can I add 'if $Message =~ /SOMETHING/' and have it write that to a different
> location? Or would I need to write an output for each thing that I want to
> match?
>
> Thanks,
> Paul
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> nxlog-ce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users