I am having trouble getting syslog-ng to log anything besides its own startup and shutdown. I have used the following configuration file, which is very similar to the sample from the distribution: options { sync(0); time_reopen(10); log_fifo_size(100); }; source src { unix-stream("/var/run/log"); udp(); tcp(ip("127.0.0.1") port(1000) mac(allow) authentication(required) encry pt(allow)); tcp(); # sun-streams("/dev/log" door("/etc/.syslog_door")); internal(); }; destination everything { file("/var/log/syslog-ng" compress(on) sync(0) log_fifo_size(10)); }; filter f_host1 { host("host1"); }; log { source(src); destination(everything); }; Is there anything obviously wrong here? -- Felicia ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I am not the poet of goodness only....I do not decline to be the poet of wickedness also. -Walt Whitman ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Mon, Aug 30, 1999 at 08:40:39PM -0400, The March Hare wrote:
I am having trouble getting syslog-ng to log anything besides its own startup and shutdown.
I have used the following configuration file, which is very similar to the sample from the distribution:
options { sync(0); time_reopen(10); log_fifo_size(100); };
source src { unix-stream("/var/run/log"); udp(); tcp(ip("127.0.0.1") port(1000) mac(allow) authentication(required) encry pt(allow)); tcp(); # sun-streams("/dev/log" door("/etc/.syslog_door")); internal(); };
If I remember correctly you were using a BSD based system (netbsd), which most probably uses unix-dgram style sockets to send log information. So instead of unix-stream use unix-dgram.
destination everything { file("/var/log/syslog-ng" compress(on) sync(0) log_fifo_size(10)); };
The compress option doesn't work yet. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
Thanks. That change helped. -- Felicia On Tue, 31 Aug 1999, Balazs Scheidler wrote:
On Mon, Aug 30, 1999 at 08:40:39PM -0400, The March Hare wrote:
I am having trouble getting syslog-ng to log anything besides its own startup and shutdown.
I have used the following configuration file, which is very similar to the sample from the distribution:
options { sync(0); time_reopen(10); log_fifo_size(100); };
source src { unix-stream("/var/run/log"); udp(); tcp(ip("127.0.0.1") port(1000) mac(allow) authentication(required) encry pt(allow)); tcp(); # sun-streams("/dev/log" door("/etc/.syslog_door")); internal(); };
If I remember correctly you were using a BSD based system (netbsd), which most probably uses unix-dgram style sockets to send log information. So instead of unix-stream use unix-dgram.
destination everything { file("/var/log/syslog-ng" compress(on) sync(0) log_fifo_size(10)); };
The compress option doesn't work yet.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu http://lists.balabit.hu/mailman/listinfo/syslog-ng
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I am not the poet of goodness only....I do not decline to be the poet of wickedness also. -Walt Whitman ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
participants (2)
-
Balazs Scheidler
-
The March Hare