Sorry, thanks for that but I may not have been clear enough. I want the logs
for each host to go to its own log file named hostname.log. I'll continue to
look from my end and if I find it I'll report back in this email in the
event it could help someone else.

-----Original Message-----
From: Marvin Nipper [mailto:marvin.nip...@westernunion.com] 
Sent: Tuesday, November 05, 2013 1:39 PM
To: Paul Fontenot; NX Log
Subject: RE: [nxlog-ce-users] Basic question

I expect that you might want something similar to this (e.g. within an
im_file definition):
        Exec $raw_event = hostname() + " " + $raw_event;

But know that you can obviously do a whole lot of other stuff, e.g. this is
part of a larger glob of stuff (so there are start-up, and run-time variable
references here, whose values were established before this statement), and
its purpose is to build an older style syslog packet, with some host and
file identification information shimmed in, just before the original log
file payload, all in order to get it ready to be fed to an upstream syslog
collection server (i.e. via om_udp or om_tcp output):
        Exec $raw_event = "<13>" + strftime(now(), "%b %e %T") + " " +
hostname() + \
          "-" + %FLATSUFX% + " AgentDevice=FileForwarder\tAgentLogFile=\x22"
+ \
          $file.name + "\x22\tPayload=" + $raw_event;

Hope that helps.
Marvin

-----Original Message-----
From: Paul Fontenot [mailto:ssdv6...@gmail.com] 
Sent: Tuesday, November 05, 2013 1:00 PM
To: NX Log
Subject: [nxlog-ce-users] Basic question

I suspect this another of those "can't see the forest because of the trees"
questions... I have seen (in the documentation somewhere) an example that
shows the logs being written out as hostname+log but I can for the life of
me find it now. Would someone kindly give me a page number or an example?
Thanks in advance.


----------------------------------------------------------------------------
--
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
nxlog-ce-users@lists.sourceforge.net
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
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to