[syslog-ng]Config file error?

Hamilton Andrew syslog-ng@lists.balabit.hu
Thu, 18 Dec 2003 09:06:18 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0025_01C3C546.2D90C1F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Your source line should look like this:

source src_udp { udp( ip("131.97.91.56") port(514)); internal(); };

Regards,

Drew

-----Original Message-----
From: carl andreasson [mailto:karlblau@hotmail.com]
Sent: Thursday, December 18, 2003 8:21 AM
To: syslog-ng@lists.balabit.hu
Subject: RE: [syslog-ng]Config file error?


No Thats just becase of the copy-paste... the config file is correct
there.. 
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
>template-escape at the end of your destination line: "templa
>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
>(host, facility, priority,level, tag, date,time,program, msg) VALUES (
>'$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)
[root@guardian-angel
>syslog-ng]#
>_______________________________________________
>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
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/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

------=_NextPart_000_0025_01C3C546.2D90C1F0
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIM8jCCBBsw
ggOEoAMCAQICASAwDQYJKoZIhvcNAQEFBQAwYTELMAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4g
R292ZXJubWVudDEMMAoGA1UECxMDRG9EMQwwCgYDVQQLEwNQS0kxHDAaBgNVBAMTE0RvRCBDTEFT
UyAzIFJvb3QgQ0EwHhcNMDMwMzIwMTUwMjUzWhcNMDkwMzE4MTUwMjUzWjBkMQswCQYDVQQGEwJV
UzEYMBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNEb0QxDDAKBgNVBAsTA1BLSTEf
MB0GA1UEAxMWRE9EIENMQVNTIDMgRU1BSUwgQ0EtNTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEArs9GG8FYEVBIzCTd6BD/+FyPTb+aH+cfdYTshM1SJNhuxjIKFr8Sekv422eYigX/ly71oSs9
b17jFhxCYWNgQBZg9ptTjdJy6MmCuBR5D9I8zlklGgfBJQaSvss7HBVgTmlubfaCtgh3Whi8Ysez
gSnhdVLbBxpAO/J0qR5l2sMCAwEAAaOCAd4wggHaMB0GA1UdDgQWBBT8EPq5amEuT7PXdMYoHmng
L85U6DAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAMBgNVHSQEBTADgAEAMB8GA1Ud
IwQYMBaAFGycpfBcj21BjcQXO5BXwg+jzW3+MDAGA1UdIAQpMCcwCwYJYIZIAWUCAQsFMAsGCWCG
SAFlAgELCTALBglghkgBZQIBCwowgYMGA1UdEgR8MHqGeGxkYXA6Ly9kcy0zLmMzcGtpLmNoYW1i
LmRpc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