[syslog-ng]Issue with Macros & 1.6.0rc2

Dan Edwards syslog-ng@lists.balabit.hu
Fri, 18 Apr 2003 12:06:08 -0400


Apparently it was an issue with the stable rc2 release.  I upgraded to
the latest snapshot today "syslog-ng-1.6.0rc2+20030418manual.tar.gz" and
it works great.

Dan Edwards
Network Specialist
A. Duda & Sons, Inc.

-----Original Message-----
From: Peter =D6sterberg [mailto:Peter_Osterberg@home.se]=20
Sent: Friday, April 18, 2003 3:42 AM
To: dme@duda.com
Subject: Re: [syslog-ng]Issue with Macros & 1.6.0rc2

You describe the same problem as the one I wrote about yesterday. Please

let me know if you come up with something.

Thanks in advance

Sincerely

Peter

At 18:02 2003-04-17 -0400, you wrote:

>I am having some strange problems that I can not seem to resolve with=20
>syslog-ng and macro use.  I am sure it is simple and I am just over=20
>looking it.  When I try and use the $YEAR, $MONTH, $DAY, $FACILITY,
$LEVEL=20
>and several other macros nothing is outputted.  Example:
>
>destination d_cisco { file("/var/log/cisco-$YEAR.$MONTH.$DAY.log"); }
>
>The file that it creates is:
>
>/var/log/cisco-&log
>
>This holds true for usage of template command in the file call.  If I=20
>format it with those macros a blank space is all that is entered.  If I

>put a \non the end of the last macro it erases all the output for the
line=20
>and makes the entire line blank.  Example:
>
>destination d_cisco { file("/var/log/cisco.log"
template($YEAR-$MONTH-$DAY=20
>$LEVEL $MSG\n)); }
>
>The output is
>
>
>
>If I do not put the \n on the end only the MSG macro will output.  Any=20
>input is greatly appreciated.
>
>Debian 3.0r1
>Syslog-ng-1.6.0rc2
>Libol-0.3.9
>
>Dan Edwards
>
>Network Specialist
>
>A. Duda & Sons, Inc.