[syslog-ng] Error parsing conf file?

Zb Indelak zb.indelak at telus.com
Fri Jun 24 17:15:57 CEST 2005


Thank you for such a quick turn-around on this issue.  I've run into a couple more.

1) New files are being created with file permissions equal to the inverse of umask, entirely ignoring the permissions specified in the perm() option.  Hardcoding the permissions in the open() call in affile.c fixes the problem (yes, I know it's not the way to do it, but I was in a hurry).  In other
words, it appears that the value of mode is all ones rather than whatever was specified in the perm() option.

2) Syslog-ng does not appear to be closing the log files and maintains a lock on the files until the application exits.  This one is causing me no end of grief.

Thanks again,
ZB

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Balazs Scheidler
Sent: Friday, June 24, 2005 1:56 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Error parsing conf file?


On Thu, 2005-06-23 at 14:42 -0600, Zb Indelak wrote:
> I have been running syslog-ng 1.6.5 on a bunch of my systems for a 
> while, however since I'm centralizing the logs from multiple time 
> zones, I decided to upgrade to version 1.9.4 so that I could use the 
> rcvd_time_zone () option.  After installing version 1.9.4 I can no 
> longer read the syslog-ng.conf file that worked fine with version 
> 1.6.5.
> 
> Version 1.9.4 gives the error "syntax error at 23"
> Version 1.9.4+20050623 gives the error "syntax error at 19"

Committed this patch, it makes syslog-ng read your configuration file
fine:

--- orig/src/cfg-lex.l
+++ mod/src/cfg-lex.l
@@ -70,6 +70,7 @@ static struct keyword keywords[] = {
        { "pad_size",           KW_PAD_SIZE },
        { "mark_freq",          KW_MARK_FREQ },
        { "sync_freq",          KW_SYNC_FREQ },
+       { "sync",               KW_SYNC_FREQ },
        { "fsync",              KW_FSYNC },
        { "long_hostnames",     KW_CHAIN_HOSTNAMES },
         { "chain_hostnames",    KW_CHAIN_HOSTNAMES },

Should be available in tomorrow's snapshot.

-- 
Bazsi

_______________________________________________
syslog-ng maillist  -  syslog-ng at lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html



More information about the syslog-ng mailing list