[syslog-ng] Syslog-ng and External variables

Fabien Wernli wernli at in2p3.fr
Mon Aug 29 15:22:24 CEST 2016


On Mon, Aug 29, 2016 at 08:34:12AM -0400, Robert Blayzor wrote:
> rewrite r_host { set(`HOSTNAME`, value("HOST")); };

The backticks replace content, so you end up with a literal in your config.
Try this instead:

    rewrite r_host { set("`HOSTNAME`", value("HOST")); };



More information about the syslog-ng mailing list