29 Aug
2016
29 Aug
'16
2:35 p.m.
On Aug 29, 2016, at 9:22 AM, Fabien Wernli <wernli@in2p3.fr> wrote:
The backticks replace content, so you end up with a literal in your config. Try this instead:
rewrite r_host { set("`HOSTNAME`", value("HOST")); };
That certainly fixes the config from complaining, but I now just get an empty string; for which syslog-ng replaces with the hosts IP instead. I’m just trying to re-write each messages host with the hostname of the current server.