On Thu, Mar 18, 2010 at 11:29 AM, Lozada, Agustin T < Agustin.Lozada@centerpointenergy.com> wrote:
Hi,
Can somebody show to me a sample to set-up for server of syslog-ng.conf? I’m trying to use this config but its complaining on s_network:
@version:3.0 options { time_reap(30); mark_freq(10); keep_hostname(yes); }; source s_local { unix-stream("/dev/log"); internal();}; source s_network { syslog(transport(tcp))}; destination d_logs { file( "/var/log/syslog-ng/logs.txt" owner("root") group("root") perm(0777) ); }; log { source(s_local); source(s_network); destination(d_logs); };
What Im missing here?
Thanks and regards,
Agustin Lozada UNIX System Admin 713-207-2474
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Hi, Where'd you get that example?? Check out the admin guide here: http://www.balabit.com/dl/guides/syslog-ng-v3.0-guide-admin-en.pdf <http://www.balabit.com/dl/guides/syslog-ng-v3.0-guide-admin-en.pdf>Page 34 has a simple example of a network source listening on port 1999: source s_demo_tcp { tcp(ip(10.1.2.3) port(1999)); }; -- Lance Laursen Demonware Systems Engineer