[syslog-ng]parse error on configuration file

Laurent Mesuré syslog-ng@lists.balabit.hu
Thu, 29 Jan 2004 18:06:28 +0100


Hi,

I'm using syslog-ng 1.6 on a Mandrake Linux server.
I have the follosing error while starting:

parse error reading configuration file, exiting. (line 42)

I can't find the error.

Here is my configuration file:

------------------------START OF FILE------------------------
# syslog-ng configuration file.
#
# This should behave pretty much like the original syslog on RedHat. But
# it could be configured a lot smarter.
#
# See syslog-ng(8) and syslog-ng.conf(5) for more information.
#
# 20000925 gb@sysfive.com
#
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 10 Aug 2002
#     - for Red Hat 7.3
#    - totally do away with klogd
#    - add message "kernel:" as is done with klogd.
#
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002
#    - use the log_prefix option as per Balazs Scheidler's email
#

options { sync (0);
          time_reopen (10);
          log_fifo_size (1000);
          long_hostnames (off);
          use_dns (yes);
          use_fqdn (yes);
          create_dirs (yes);
          keep_hostname (yes);
        };

source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream 
("/dev/log"); internal(); };

destination d_cons { file("/dev/console"); };
destination d_tty12 { file("/dev/tty12"); };
destination d_mesg { file("/var/log/messages"); };
destination d_secure { file("/var/log/secure"); };
destination d_mail { file("/var/log/maillog"); };
destination d_boot { file("/var/log/boot.log"); };
destination d_cron_info { file("/var/log/cron/info"); };
destination d_cron_warnings { file("/var/log/cron/warnings"); };
destination d_cron_errors { file("/var/log/cron/errors"); };
destination d_syslog { file("/var/log/syslog"); };
destination d_user { file("/var/log/user.log"); };
destination d_auth { file("/var/log/auth.log"); 
);                                           <-------- here is line 42
destination d_mail_info { file("/var/log/mail/info"); );
destination d_mail_warnings { file("/var/log/mail/warnings"); );
destination d_mail_errors { file("/var/log/mail/errors"); );
destination d_kernel_info { file("/var/log/kernel/info"); );
destination d_kernel_warnings { file("/var/log/kernel/warnings"); );
destination d_kernel_errors { file("/var/log/kernel/errors"); );
destination d_lpr_info { file("/var/log/lpr/info"); );
destination d_lpr_warnings { file("/var/log/lpr/warnings"); );
destination d_lrp_errors { file("/var/log/lpr/errors"); );
destination d_news_notice { file("/var/log/news/notice"); );
destination d_news_crit { file("/var/log/news/crit"); );
destination d_news_err { file("/var/log/news/err"); );
destination d_daemon_info { file("/var/log/daemons/info"); );
destination d_daemon_warnings { file("/var/log/daemons/warnings"); );
destination d_daemon_errors { file("/var/log/daemons/errors"); );
destination d_spooler { file("/var/log/spooler"); );
destination d_explain { file("/var/log/explainations"); );
destination d_postgresql { file("/var/log/postgresql"); );
destination d_mlal { usertty("*"); };

filter f_auth         { facility(auth,authpriv); };
filter f_syslog      { not facility(auth,authpriv); };
filter f_user         { facility(user); };
filter f_messages     { level(info) or not facility(mail,news,authpriv); };
filter f_secure         { facility(authpriv); };
filter f_mail_info     { facility(mail) and (level(debug,info,notice)); };
filter f_mail_warnings     { facility(mail) and (level(warn)); };
filter f_mail_errors     { facility(mail) and (level(err)); };
filter f_cron_info     { facility(cron) and (level(debug,info,notice)); };
filter f_cron_warnings     { facility(cron) and (level(warn)); };
filter f_cron_errors     { facility(cron) and (level(err)); };
filter f_kernel_info     { facility(kern) and (level(debug,info,notice)); };
filter f_kernel_warnings { facility(kern) and (level(warn)); };
filter f_kernel_errors     { facility(kern) and (level(err)); };
filter f_lpr_info     { facility(lpr) and (level(debug,info,notice)); };
filter f_lpr_warnings     { facility(lpr) and (level(warn)); };
filter f_lpr_errors     { facility(lpr) and (level(err)); };
filter f_news_info     { facility(news) and (level(debug,info,notice)); };
filter f_news_crit     { facility(news) and (level(crit)); };
filter f_news_err     { facility(news) and (level(err)); };
filter f_daemon_info     { facility(daemon) and 
(level(debug,info,notice)); };
filter f_daemon_crit     { facility(daemon) and (level(warn)); };
filter f_daemon_err     { facility(daemon) and (level(err)); };
filter f_emerg         { level(emerg); };
filter f_spooler     { facility(uucp) or (facility(news) and 
level(crit)); };
filter f_boot         { facility(local7); };
filter f_explanation     { facility(local1); };
filter f_postgresql     { facility(local0); };

#log { source(s_sys); filter(f_filter1); destination(d_cons); };
log { source(s_sys); filter(f_auth); destination (d_auth); };
log { source(s_sys); destination(d_syslog); };
log { source(s_sys); filter(f_user); destination (d_user); };
log { source(s_sys); filter(f_messages); destination(d_mesg); };
log { source(s_sys); filter(f_secure); destination(d_secure); };
log { source(s_sys); filter(f_mail_info,f_mail_warnings,f_mail_errors); 
destination(d_mail); };
log { source(s_sys); filter(f_emerg); destination(d_mlal); };
log { source(s_sys); filter(f_spooler); destination(d_spooler); };
log { source(s_sys); filter(f_boot); destination(d_boot); };
log { source(s_sys); filter(f_mail_info); destination(d_mail_info); };
log { source(s_sys); filter(f_mail_warnings); 
destination(d_mail_warnings); };
log { source(s_sys); filter(f_mail_errors); destination(d_mail_errors); };
log { source(s_sys); filter(f_cron_info); destination(d_cron_info); };
log { source(s_sys); filter(f_cron_warnings); 
destination(d_cron_warnings); };
log { source(s_sys); filter(f_cron_errors); destination(d_cron_errors); };
log { source(s_sys); filter(f_kernel_info); destination(d_kernel_info); };
log { source(s_sys); filter(f_kernel_warnings); 
destination(d_kernel_warnings); };
log { source(s_sys); filter(f_kernel_errors); 
destination(d_kernel_errors); };
log { source(s_sys); filter(f_lpr_info); destination(d_lpr_info); };
log { source(s_sys); filter(f_lpr_warnings); destination(d_lpr_warnings); };
log { source(s_sys); filter(f_lpr_errors); destination(d_lpr_errors); };
log { source(s_sys); filter(f_news_info); destination(d_news_info); };
log { source(s_sys); filter(f_news_crit); destination(d_news_crit); };
log { source(s_sys); filter(f_news_err); destination(d_news_err); };
log { source(s_sys); filter(f_daemon_info); destination(d_daemon_info); };
log { source(s_sys); filter(f_daemon_warnings); 
destination(d_daemon_warnings); };
log { source(s_sys); filter(f_daemon_errors); 
destination(d_daemon_errors); };
log { source(s_sys); filter(f_postgresql); destination(d_postgresql); };
-------------------------END OF FILE-------------------------