hi all,
I am trying to log certain types of messages(like errors and warnings) through syslog-ng. I am using SLES 10 SP1 and syslog-ng version 1.6.8.
In the configuration file /etc/syslog-ng/syslog-ng.conf.in entered the following lines to format the log message:
Code:
template t_demo { template("$ISODATE $HOST $MSG\n"); template_escape(no); };
After this i run the commands "
/sbin/SuSEconfig --module syslog-ng;rcsyslog restart
the first command succeeds where as the second command (syslog restart) fails saying
Code:
Starting syslog servicessyntax error at 165
Parse error reading configuration file, exiting. (line 165)
startproc: exit status of parent of /sbin/syslog-ng: 1
failed
. If i remove the template definition, then it syslog service is starting properly.
It would be great if somebody help me out of this.
Thanks in advance,
Sridhar