[syslog-ng] syslog-ng not working

Ramprasad ramprasad_b at spanservices.com
Wed Oct 8 09:12:33 CEST 2008


Hi list,

 

I have the following configuration in /etc/syslog-ng/syslog-ng.conf file
on OpenSuSE 11.0 64 bit system.

 

# cat /etc/syslog-ng/syslog-ng.conf

options { long_hostnames(off); sync(0); perm(0640); stats(3600); };

source src {

        internal();

        unix-stream("/dev/log");

        unix-dgram("/dev/log");

};

 

destination d_filepath_10 { file("/tmp/syslog" fsync(yes)); };

filter f_filter_10 {level(debug .. emerg); };

log { source(src); filter(f_filter_10); destination(d_filepath_10); };

 

I don't see any log messaged being logged to /tmp/syslog file. Though, I
restarted the syslog daemon, there is not effect.

 

I went through some syslog-ng examples available on internet such as the
one below, but still I don't see syslog-ng logging to the specified file
- /tmp/syslog

 

# cat /etc/syslog-ng/syslog-ng.conf

options {

        keep_hostname(yes);

        long_hostnames(off);

        sync(1);

        log_fifo_size(1024);

};

 

source src {

        unix-stream("/dev/log");

        internal();

        udp();

        tcp(port(5140) keep-alive(yes));

};

 

destination syslog { file("/var/log/syslog"); };

destination debug { file("/var/log/debug"); };

destination messages { file("/tmp/syslog"); };

 

filter f_messages { level(info .. warn)

        and not facility(auth, authpriv, cron, daemon, mail, news); };

 

log { source(src); filter(f_messages); destination(messages); };

 

 

Please help us on this.

 

Thanks & Regards,

Ramprasad B

 

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


More information about the syslog-ng mailing list