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