I am attempting to rotate some logs based on size and am using the following from the example in the nxlog documentation
91 Exec if jbossOut->file_size() > 5M { \ 92 $newfile = "%JBOSSDIR%/" + $Hostname + "/" + $Hostname + "-" + $dst + "-" strftime(now(), "%Y%m%d%H%M%S" + ".log"); \ 93 jbossOut->rotate_to($newfile); \ 94 exec_async("/usr/bin/bzip2", $newfile); \ 95 } And it's throwing this error and I can't figure out what is causing this unless its another instance where I'm getting bit by globbing. 2014-01-06 11:01:39 ERROR Couldn't parse Exec block at /etc/nxlog.d/01-jboss-logs.conf:95;couldn't parse statement at line 95, character 141 in /etc/nxlog.d/01-jboss-logs.conf;syntax error, unexpected TOKEN_FUNCPROC, expecting ; ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users