[syslog-ng] syslog-ng OSE 3.5.1 is not accepting global options

Tamayo, Andres Andres.Tamayo at viasat.com
Fri Feb 28 23:48:50 CET 2014


Hello,

I am experiencing problems with syslog-ng OSE 3.5.1 reading the configuration file and accepting its global options.  I had problems with 2 global options specified in my syslog-ng.conf file:

@version: 3.5
@include "scl.conf"

options
{
   flush_lines(0);
   time_reopen(10);
   log_fifo_size(1000);
   use_dns(no);
   use_fqdn(yes);
   keep_hostname(no);
   keep_timestamp(yes);
   chain_hostnames(no);

   perm(0640);
   owner("root");
   group("root");
   create_dirs(yes);
   dir_perm(0750);
   dir_owner("root");
   dir_group("root");
};

source s_cache
{
   file("/path/to/some/file.txt", flags(no-parse));
};

destination d_network
{
   syslog("192.168.1.10" port(1901) transport("tcp"));
};

log
{
   source(s_cache);

   destination(d_network);
};

The time_reopen and log_fifo_size seem to be forced to zero if I try to specify alternate values for them as shown above.  If I do not include them in the configuration file, syslog-ng uses their default values time_reopen=60 and log_fifo_size=10000.

Does anybody know what may be causing this problem?  The log_fifo_size default value is OK but I need a faster time_reopen window and I cannot find a way to specify it.  If I do, syslog-ng forces it to time_reopen=0.  I can tell because I get message like this when it is trying to reconnect:

Syslog connection failed; fd='8', server='AF_INET(192.168.1.10:1901)', error='Connection refused (146)', time_reopen='0'

If I remove the time_reopen(10) global option from the syslog-ng.conf file, then I get the following message when syslog-ng it is trying to reconnect:

Syslog connection failed; fd='8', server='AF_INET(192.168.1.10:1901)', error='Connection refused (146)', time_reopen='60'

Please let me know if you have any questions for me.

Thank you for your help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140228/d5d7603e/attachment.htm 


More information about the syslog-ng mailing list