[syslog-ng]Config file error?

Christian Osbahr syslog-ng@lists.balabit.hu
Thu, 18 Dec 2003 14:30:23 +0100


Well the space-thing would have been too easy;-) Have you tried adding a
semi-colon after "udp(131.97.91.56)"  (=3D> "udp(131.97.91.56);")  ?

/Christian



No Thats just becase of the copy-paste... the config file is correct
there..=20
i checked it,
It seems to be complaining about the UDP stuff....
/calle
>
>Maybe it's just a copy-pase thing, but a space seem to have crept into=20
>template-escape at the end of your destination line: "templa=20
>te-escape(yes))" .
>
>/Christian
>
>
>The config file:
>***********************************************
>
>options { long_hostnames(on); sync(0); };
>
>source src_udp {udp(131.97.91.56) port(514); internal; };
>
>destination d_mysql { pipe("/tmp/mysql.pipe"template("INSERT INTO logs=20
>(host, facility, priority,level, tag, date,time,program, msg) VALUES (=20
>'$HOST', '$FACILITY','$PRIORITY', '$LEVEL', '$TAG','$YEAR-$MONTH-$DAY',

>'$HOUR:$MIN:$SEC', '$PROGRAM','$MSG' );\n") templa te-escape(yes));};
>
>log {   source(src_udp);
>         destination(d_mysql); };
>
>***********************************************
>
>and i get this when i try to run it,
>***********************************************
>[root@guardian-angel syslog-ng]# syslog-ng start parse error at 3 Parse

>error reading configuration file, exiting. (line 3)=20
>[root@guardian-angel syslog-ng]#=20
>_______________________________________________
>syslog-ng maillist  -  syslog-ng@lists.balabit.hu=20
>https://lists.balabit.hu/mailman/listinfo/syslog-ng
>Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.=20
http://join.msn.com/?page=3Dfeatures/featuredemail

_______________________________________________
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