[syslog-ng]$HOST $YEAR, etc not working correctly..

Balazs Scheidler syslog-ng@lists.balabit.hu
Wed, 25 Feb 2004 16:06:25 +0100


2004-02-25, sze keltezéssel 03:34-kor Doug Peterson ezt írta:
> I seem to be creating my own thread here... I was always told its ok to talk to yourself as long
> as you don't talk back... hhrrmmm
> 
> 
> I found the original that I downloaded and it was 1.6.0rc1, I compiled and installed that (with
> the latest stable libol), and it worked like a charm, just like before..

strange, the problem seems to be that you reference marcos like
$YEAR_$MONTH_

which is interpeted as $YEAR_ concatenated with $MONTH_, these are
undefined macros, thus are expanded to an empty string.

Try escaping the underscore with a backslash, like

$YEAR\_$MONTH\_

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1