Mailinglist Archive: opensuse (2876 mails)

< Previous Next >
Re: [opensuse] Still having problems with syslog-ng syntax
  • From: Darryl Gregorash <raven@xxxxxxxxxxxxx>
  • Date: Sat, 19 May 2007 19:48:45 -0600
  • Message-id: <464FA8FD.2010803@xxxxxxxxxxxxx>
On 2007-05-19 19:27, Registration Account wrote:
> source s_udp { udp(ip(192.168.100.10) port(514); destination(d_file) };
> destination d_file { file("/var/log/skot" ); };
> #
I thought the sample config file was very clear. If not the
documentation seems to be.

source s_udp { udp(ip(192.168.100.10) port(514) );
destination d_file { file("/var/log/skot" ); };
log (source(s_udp); destination(d_file));

Make sure you put that into /etc/syslog-ng/syslog-ng.conf.in and run
"SuSEconfig --module syslog-ng". Do *not* simply edit
/etc/syslog-ng/syslog-ng.conf or your changes will be lost the next time
SuSEconfig is run.

Finally run "rcsyslog reload".

-- 
Moral indignation is jealousy with a halo. -- HG Wells

-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >