[syslog-ng] Error parsing conf file?

Balazs Scheidler bazsi at balabit.hu
Fri Jun 24 09:56:25 CEST 2005


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



More information about the syslog-ng mailing list