[syslog-ng]sync within tcp

Matthew Copeland matthewc@designlab.ukans.edu
Mon, 19 Feb 2001 13:06:56 -0600


I am using the following for my config file.  I have been told that you
can sync a tcp connection to a certain number of lines, and I thought this
was how you do it, but it dies on the first line that has the sync with a
parse error.  If I move it to its own line, outside of the tcp, it dies
parsing there.  Can someone please tell me where I am messing up here?

Thanks, 
Matthew M. Copeland





options { 
        long_hostnames(off); 
        log_fifo_size(1440000);
};

source src { 
        unix-stream("/dev/log"); 
        internal(); 
};

destination normal_messages {
        tcp("129.235.66.4" port(999) sync(10));
};

destination immediate_messages {
        tcp("129.235.66.4" port(999) sync(0));
};
filter f_gs_alert {
         match("GS_ALERT"); 
};

log {   source (src);
        filter(f_gs_alert);
        destination(immediate_messages);
};

log {   source(src); 
        filter(DEFAULT);
        destination(normal_messages);
};