[syslog-ng] Syslog-ng and External variables

Robert Blayzor rblayzor.bulk at inoc.net
Mon Aug 29 18:11:25 CEST 2016


On Aug 29, 2016, at 11:38 AM, Evan Rempel <erempel at uvic.ca> wrote:
> 
> I do this by adding the following to my config file
> 
> @module confgen context(rewrite) name(r_myself) exec("/bin/hostname")
> 
> rewrite r_local {
>         set( r_myself(), value("HOST")  );
> };
> 
> log {
>         source(s_your_source);
>         rewrite(r_local);
>         destination(d_your_destination);
> };
> 
> 
> 
> 
> 
> hope that helps.


And that it most certainly did. Worked great, thank you!


--
Robert
inoc.net!rblayzor
XMPP: rblayzor.AT.inoc.net
PGP Key: 78BEDCE1 @ pgp.mit.edu




More information about the syslog-ng mailing list