On Fri, 2008-02-08 at 00:06 +0100, Uwe Galle wrote:
Hi,
I am using openSUSE 10.3 with syslog-ng 1.6.12-33 with the following configuration file:
# source s_file { internal(); }; destination d_file { file("/home/uga/Daten/system/system.msg"); }; log { source(s_file); destination(d_file); };
You see, it's really simple. ls -l displays for the file:
-rw-rw-rw- 1 root root 0 2008-02-07 22:03 system.msg
So system.msg is writable for all. But nothing is logged to the file, even after restart. The FAQ mentions a similar case (http://www.campin.net/syslog-ng/faq.html#dupe_sources) but the problem here are clearly duplicate sources in the directives. This is not the case here. Any ideas are very welcome.
The "internal" source is used to generate syslog-ng internal messages, not local messages. You probably need unix-dgram("/dev/log") in your source statement if you want local logs. -- Bazsi