I'm trying to put a size rotation in an Output block that currently has a working drop() and it's stomping my tail, here it is would someone please point me in the right direction?
<Output tcpout> Module om_file File '/var/nxlog/' + $Hostname + '.log' 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 =~ /MCP limit exceeded/ or \ $Message =~ /starting 0anacron/ or \ $Message =~ /finished 0anacron/ or \ $Message =~ /pulseaudio/ or \ $Message =~ /\(root\) CMD \(run-parts .etc.cron.daily\)/ or \ $Message =~ /\(root\) CMD \(run-parts .etc.cron.hourly\)/ or \ $Message =~ /\(root\) CMD \(run-parts .etc.cron.monthly\)/ or \ $Message =~ /\(root\) CMD \(.usr.lib64.sa.sa1 1 1\)/) drop(); </Output> ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users