[syslog-ng] No output to file with 2.1.1

Joe Shaw joe at joeshaw.org
Wed Sep 3 00:33:52 CEST 2008


Hi,

I just tried updating to 2.1.1 on my test instance and none of the
incoming data is being written out to disk.  It worked for me with
2.0.9.

The problem is with the log_iw_size() parameter in my tcp source.
Without it, the data is being logged to disk.

My configuration file is below.  Anything obviously amiss?

Thanks,
Joe

--

# General Options

options {
    sync(0);
    time_reopen(10);
    log_fifo_size(131072);
    long_hostnames(off);
    use_dns(yes);
    dns_cache(yes);
    use_fqdn(no);
    keep_hostname(yes);
    use_time_recvd(no);
    #log_msg_size(65536);
    log_msg_size(16384);
    stats_freq(180);
    #time_sleep(20);
};

# Remote source
source s_tcp {
    tcp(port(2000) log_iw_size(131072) log_fetch_limit(1024)
max_connections(128));
};

# syslog-ng statistics
source s_internal {
    internal();
};

destination d_file {
    file("/ita/syslog-messages" perm(0644));
};

destination d_stats {
    file("/ita/syslog-stats" perm(0644));
};

# Save stats separately
log { source(s_internal); destination(d_stats); };

# Take all remote data and save it locally
log { source(s_tcp); destination(d_file); flags(flow-control); };


More information about the syslog-ng mailing list