Can multiple Exec's be put in the same output block? For instance, I want to
rotate the log and I want to drop certain entries. Seems logical to me but I
can't seem to find anything that sheds any light on how to do this so I am
turning to the mailing list for some insight.

Exec    if tcpout->file_size() > 1M \
        { \
                $newfile = "/var/nxlog/" + $Hostname + "_" + strftime(now(),
"%Y%m%d%H%M%S"); \
                out->rotate_to($newfile); \
                exec_async("/bin/bzip2", $newfile); \
        }

Exec    if ($Message =~ /starting 0anacron/ or \
                   $Message =~ /finished 0anacron/ drop(); 


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to