Ron, in a very rudimentary approach, I believe you could do something with
$raw_event like this:

Exec $raw_event = 'someHostName, ' + $raw_event




On 1 November 2013 21:01, Ron Santini <ron.sant...@j2.com> wrote:

>  Hello,
>
>
>
> Sorry if this is a duplicate/easy request but I’m unable to locate the
> solution…
>
>
>
>
>
> I have nxlog collecting data from multiple log files (each slightly
> different in format) on several servers and would like to prefix the
> hostname to each line in order to identify the source.
>
>
>
> My conf:
>
> <Extension syslog>
>
>     Module      xm_syslog
>
> </Extension>
>
>
>
> <Input messages>
>
>     Module      im_file
>
>     File     'c:\Send\\*.log'
>
> </Input>
>
>
>
> <Output out>
>
>     Module      om_udp
>
>     Host        log.somelocation.com
>
>     Port        514
>
> </Output>
>
>
>
> <Route 1>
>
>     Path        messages => out
>
> </Route>
>
>
>
>
>
> *Thank you,*
>
>
>
> *Ron S.*
>
> [image: 
> www.j2.com]<http://www.j2.com/?utm_source=j2global&utm_medium=xsell-referral&utm_campaign=employeeemail>
>
> This email, its contents and attachments contain information from j2
> Global, 
> Inc<http://www.j2.com/?utm_source=j2global&utm_medium=xsell-referral&utm_campaign=employemail>.
> and/or its affiliates which may be privileged, confidential or otherwise
> protected from disclosure. The information is intended to be for the
> addressee(s) only. If you are not an addressee, any disclosure, copy,
> distribution, or use of the contents of this message is prohibited. If you
> have received this email in error please notify the sender by reply e-mail
> and delete the original message and any copies. © 2013 j2 Global, 
> Inc<http://www.j2.com/>.
> All rights reserved. eFax ® <http://www.efax.com/>, eVoice 
> ®<http://www.evoice.com/>,
> Campaigner ® <http://www.campaigner.com/>, FuseMail 
> ®<http://www.fusemail.com/>,
> KeepItSafe ® <http://www.keepitsafe.com/> and Onebox 
> ®<http://www.onebox.com/>are registered trademarks of j2
> Global, Inc <http://www.j2.com/>. and its affiliates.
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> nxlog-ce-users mailing list
> nxlog-ce-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
>
>


-- 

---
James Crowley
CTO, FundApps - a new generation in financial services software -
http://www.fundapps.co/
Founder, developerFusion - the global developer community -
http://www.developerfusion.com/

linkedin: http://linkedin.com/in/jamescrowley
twitter: http://twitter.com/jamescrowley
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&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