[syslog-ng] Rediecting logs
Balazs Scheidler
bazsi at balabit.hu
Mon May 10 17:19:29 CEST 2010
On Tue, 2010-04-20 at 12:38 +0200, Zoltán Pallagi wrote:
> Hi,
>
> Replace $HOST_syslog.log to $HOST-syslog.log and it will work.
> Syslog-ng seems to be handling wrong if underscore character is after
> macroname.
> Report a bug about it, please (https://bugzilla.balabit.com/)
this is not a bug, '_' is permitted in the name of a macro, thus $HOST_
is an - undefined - macro that syslog-ng expands to its value: nothing.
you should use ${HOST} if you want to use the '_'
This is the same as the UNIX shell behaviour btw.
--
Bazsi
More information about the syslog-ng
mailing list