Any help on this would be greatly appreciated, I would like to do something
like this

<Output tcp_out>
        Module  om_file
        Exec    to_syslog_bsd();
        File    '/mnt/raid0/nxlog/' + $Hostname + '.log'
        <Schedule out_schedule>
                When    @hourly
                Exec    file_rename("/mnt/raid0/nxlog/" + $Hostname +
".log", "/mnt/raid0/nxlog/" + $Hostname + '-' + strftime(now(), "%Y%m%d"));
                        out_schedule->reopen();
        </Schedule>
</Output>

But I'm unsure how to get the value of $Hostname to work in the Schedule
block. The log tells me the following which I take to mean that $Hostname
is not available in the Schedule block.

"expression evaluation has been aborted;missing logdata, no field available
in this context"
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck&#174;
Code Sight&#153; - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to