[syslog-ng]Parse error on line 1

wes wes@armstrong.edu
Fri, 06 Dec 2002 10:07:05 -0500


Yep looks like the right file.  If I edit it I can move the parse error.

I'll rebuild syslog-ng from scratch and see if that works.

Wes


Version:1.4.17
OS: Mandrake 2.4.8-34.1mdk



Screen dump of 2nd try:

[root@EARTH syslog-ng]# cat syslog-ng.conf
options { sync(0); };

source src {
         udp();
         internal(); };

destination misc{file("/var/log/misc");};
log{source(src); destination (misc);};

[root@EARTH syslog-ng]# whereis syslog-ng
syslog-ng: /etc/syslog-ng /usr/local/sbin/syslog-ng

[root@EARTH syslog-ng]# /usr/local/sbin/syslog-ng -v -d -f 
/etc/syslog-ng/syslog-ng.conf
parse error at 1
Parse error reading configuration file, exiting.

[root@EARTH syslog-ng]# cat syslog
syslog-ng.conf      syslog-ng.conf.old

[root@EARTH syslog-ng]# cat syslog-ng.conf
options { sync(0); };

source src {
         udp();
         internal(); };

destination misc{file("/var/log/misc");};
log{source(src); destination (misc);};

[root@EARTH syslog-ng]# vi sy
syslog-ng.conf      syslog-ng.conf.old

[root@EARTH syslog-ng]# vi syslog-ng.conf

[root@EARTH syslog-ng]# /usr/local/sbin/syslog-ng -v -d -f 
/etc/syslog-ng/syslog
-ng.conf
parse error at 2
Parse error reading configuration file, exiting.

[root@EARTH syslog-ng]# cat syslog-ng.conf
#options { sync(0); };

source src {
         udp();
         internal(); };

destination misc{file("/var/log/misc");};
log{source(src); destination (misc);};
[root@EARTH syslog-ng]#