Problem with built in variables in syslog-ng
I'm banging my head here and can't figure out for the life of me what happened. I had everything working, and after packaging up the binaries into a solaris package and reinstalling via package to test the package, some of the built in variables do not work. For example I have this destination statement: destination network_log { file("/var/log/syslog-ng/$HOST/$FACILITY.$YEAR$MONTH$DAY" owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes) ); }; Before it worked correctly, I'd end up with a log entry like /var/log/syslog-ng/hostabc/auth.20030429 Now I get: /var/log/syslog-ng/.29 Only the $DAY variable appears to be working, all of the others are resolving to null. When I truss the process I see it trying to access the file like: open("/var/log/syslog-ng//.29", O_WRONLY|O_APPEND|O_NONBLOCK|O_CREAT|O_NOCTTY|O_LARGEFILE, 0600) = 7 I've compared the binaries built when I compilied vs what I have in the package and I don't see any changes. Any input anyone has would be greatly appreciated. BTW I'm running syslog-ng 1.6.0rc2 compiled and installed on Solaris 8 Sparc, Ultra 2 to be exact. Thank you Rob
On Wednesday 30 April 2003 01:28, Glasser, Rob wrote:
I'm banging my head here and can't figure out for the life of me what happened. I had everything working, and after packaging up the binaries into a solaris package and reinstalling via package to test the package, some of the built in variables do not work. For example I have this destination statement:
destination network_log { file("/var/log/syslog-ng/$HOST/$FACILITY.$YEAR$MONTH$DAY" owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes) ); };
Before it worked correctly, I'd end up with a log entry like /var/log/syslog-ng/hostabc/auth.20030429 Now I get: /var/log/syslog-ng/.29
This is a known bug in version 1.6.0rc2, update to version 1.6.0rc3. Achim
I had this problem with RC2, never looked at why just found that snapshot from 4/18 fixed it, surprised it returned in another final build. Dan Edwards Network Specialist A. Duda & Sons, Inc. -----Original Message----- From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Achim Gsell Sent: Tuesday, April 29, 2003 8:18 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]Problem with built in variables in syslog-ng On Wednesday 30 April 2003 01:28, Glasser, Rob wrote:
I'm banging my head here and can't figure out for the life of me what happened. I had everything working, and after packaging up the binaries into a solaris package and reinstalling via package to test the package, some of the built in variables do not work. For example I have this destination statement:
destination network_log { file("/var/log/syslog-ng/$HOST/$FACILITY.$YEAR$MONTH$DAY" owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes) ); };
Before it worked correctly, I'd end up with a log entry like /var/log/syslog-ng/hostabc/auth.20030429 Now I get: /var/log/syslog-ng/.29
This is a known bug in version 1.6.0rc2, update to version 1.6.0rc3. Achim _______________________________________________ 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
participants (3)
-
Achim Gsell
-
Dan Edwards
-
Glasser, Rob