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

Kelly, Chuck syslog-ng@lists.balabit.hu
Tue, 24 Feb 2004 14:54:37 -0800


My point being try separating the lines out, I do a similar thing with
no issues, but keep destinations within their own set of {}=20


--
Chuck

-----Original Message-----
From: syslog-ng-admin@lists.balabit.hu
[mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Doug Peterson
Sent: Tuesday, February 24, 2004 2:43 PM
To: syslog-ng@lists.balabit.hu
Subject: [syslog-ng]$HOST $YEAR, etc not working correctly..

Howdy, I recently installed the same config file I had in 1.6.0rc1(or
rc2?) on redhat 7.3 to a system with syslog-ng 1.6.2 with redhat 9...

My log files are not being written in the format that I would expect (or
that they WERE on the old box)..=20

I would expect the following rule to write to the
file:
/var/log/hosts/webserver1/2004/02/24/webserver1_messages_2004_02_24

Instead I get:
/var/log/hosts/webserver1/2004/02/24/messsages_24

The rule: destination messages.network {
file("/var/log/hosts/$HOST/$YEAR/$MONTH/$DAY/$HOST_messages_$YEAR_$MONTH
_$DAY"
                                owner(root)
group(sysadmin) perm(0640) dir_perm(0700)
create_dirs(yes) ); };

This happens with all similar destination rules. The $year, $month,
$host, etc work fine in the first portion of the destination, but they
don't all work in the filename.. but $day does for some strange reason.=20

I can provide my full 164 line config file on request, but all
destinations are setup the same as this one, and all get the same
result.=20

What am I missing here? :)



__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html