please help find the "parse error" in this small syslog-ng.conf...
This syslog-ng.conf: options {long_hostnames(no); keep_hostname(yes); chain_hostnames(no);}; source client_sources {unix-stream("/dev/log"); pipe("/proc/kmsg"); internal();}; destination local_dest {file("/var/log/messages");}; destination remote_dest {tcp(ip("127.0.0.1") port(514));}; log {source(client_sources); destination(local_dest);}; log {source(client_sources); destination(remote_dest);}; gives this error messages when I try to use it... [laptop root /etc/rc.d] # /usr/local/sbin/syslog-ng -f /etc/syslog-ng.conf parse error at 8 Parse error reading configuration file, exiting. (line 8) I've stared at this syslog-ng.conf for a long time and can't see what the problem is. Any help would be greatly appreciated. Sincerely, Chris
On Mon, Jul 19, 2004 at 04:20:34PM -0700, seberino@spawar.navy.mil wrote:
I've stared at this syslog-ng.conf for a long time and can't see what the problem is. Any help would be greatly appreciated.
You have this: tcp( ip("127.0.0.1") port(514) ); ...when mine looks like this: tcp("127.0.0.1" port(514)); The way you declared it is like how it's done in a source declaration, now that I look at it it's different for sources and destinations. Too bad it's not the same, it would be more intuitive. -- Nate "Fifty years of programming language research, and we end up with C++ ???" - Richard A. O'Keefe.
Nate Thanks, it worked with your suggestion. Chris On Tue, Jul 20, 2004 at 11:09:38PM -0700, Nate Campi wrote:
On Mon, Jul 19, 2004 at 04:20:34PM -0700, seberino@spawar.navy.mil wrote:
I've stared at this syslog-ng.conf for a long time and can't see what the problem is. Any help would be greatly appreciated.
You have this:
tcp( ip("127.0.0.1") port(514) );
...when mine looks like this:
tcp("127.0.0.1" port(514));
The way you declared it is like how it's done in a source declaration, now that I look at it it's different for sources and destinations.
Too bad it's not the same, it would be more intuitive. -- Nate
"Fifty years of programming language research, and we end up with C++ ???" - Richard A. O'Keefe.
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- _______________________________________ Christian Seberino, Ph.D. SPAWAR Systems Center San Diego Code 2872 49258 Mills Street, Room 158 San Diego, CA 92152-5385 U.S.A. Phone: (619) 553-9973 Fax : (619) 553-6521 Email: seberino@spawar.navy.mil _______________________________________
participants (2)
-
Nate Campi
-
seberino@spawar.navy.mil