[syslog-ng] parse error

voorbeeld voorbeeld voorbeeld_1 at hotmail.com
Tue Jan 23 16:36:22 CET 2007


Hi,

thanks for your reaction.

The output of  " $ ls -l /opt/local/etc/syslog-ng/syslog-ng.conf"  is:

"-rwxrwxrwx   1 root  admin  3318 Jan 23 14:37 syslog-ng.conf"

The output of " $ cat /opt/local/etc/syslog-ng/syslog-ng.conf " is:

options {
long_hostnames(on);
sync(0);
use_dns(yes);
use_fqdn(yes);
create_dirs(yes);
keep_hostnames(yes);
time_reap(12);
time_reopen(10);
};

source src { unix-stream("/dev/log"); internal(); };
source net { udp(ip(127.20.0.2) port(514)); };

destination authlog { file("/var/log/auth.log"); };
destination syslog { file("/var/log/syslog"); };
destination cron { file("/var/log/cron.log"); };
destination daemon { file("/var/log/daemon.log"); };
destination kern { file("/var/log/kern.log"); };
destination lpr { file("/var/log/lpr.log"); };
destination user { file("/var/log/user.log"); };
destination uucp { file("/var/log/uucp.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination mail { file("/var/log/mail.log"); };

destination mailinfo { file("/var/log/mail.info"); };
destination mailwarn { file("/var/log/mail.warn"); };
destination mailerr { file("/var/log/mail.err"); };

destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };

destination debug { file("/var/log/debug"); };
destination messages { file("/var/log/messages"); };
destination console { usertty("root"); };


filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };
filter f_syslog { not facility(authpriv, mail); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_kern { facility(kern); };
filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_user { facility(user); };
filter f_uucp { facility(cron); };
filter f_ppp { facility(local2); };
filter f_news { facility(news); };
filter f_debug { not facility(auth, authpriv, news, mail); };
filter f_messages { level(info..warn)
        and not facility(auth, authpriv, mail, news); };
filter f_emergency { level(emerg); };

filter f_info { level(info); };
filter f_notice { level(notice); };
filter f_warn { level(warn); };
filter f_crit { level(crit); };
filter f_err { level(err); };

log { source(src); filter(f_authpriv); destination(authlog); };
log { source(src); filter(f_syslog); destination(syslog); };
log { source(src); filter(f_cron); destination(cron); };
log { source(src); filter(f_daemon); destination(daemon); };
log { source(src); filter(f_kern); destination(kern); };
log { source(src); filter(f_lpr); destination(lpr); };
log { source(src); filter(f_mail); destination(mail); };
log { source(src); filter(f_user); destination(user); };
log { source(src); filter(f_uucp); destination(uucp); };
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
log { source(src); filter(f_news); filter(f_err); destination(newserr); };
log { source(src); filter(f_news); filter(f_notice); 
destination(newsnotice); };
log { source(src); filter(f_debug); destination(debug); };
log { source(src); filter(f_messages); destination(messages); };
log { source(src); filter(f_emergency); destination(console); };
log { source(src); filter(f_ppp); destination(ppp); };
log { source(src); destination(console_all); };

>From: Matt Zagrabelny <mzagrabe at d.umn.edu>
>Reply-To: Syslog-ng users' and developers' mailing list 
><syslog-ng at lists.balabit.hu>
>To: syslog-ng at lists.balabit.hu
>Subject: Re: [syslog-ng] parse error
>Date: Tue, 23 Jan 2007 09:15:22 -0600
>
>On Tue, 2007-01-23 at 15:06 +0000, voorbeeld voorbeeld wrote:
> > Hello all,
> >
> > i'm a newbie with Syslog-ng and i've got aquestion about it. I'm 
>installed
> > syslog-ng version 1.6.11 with DarwinPorts (with command "sudo port 
>install
> > syslog-ng"). When i try to run syslog-ng (from the location
> > "/opt/local/sbin/") i get the following error:
> >
> > "Cannot open configuration file /opt/local/etc/syslog-ng/syslog-ng.conf 
>for
> > reading
> > Parse error reading configuration file, exiting. (line 1)".
>
>what is the output of
>
>$ ls -l /opt/local/etc/syslog-ng/syslog-ng.conf
>
>what is the output of
>
>$ cat /opt/local/etc/syslog-ng/syslog-ng.conf
>
>--
>Matt Zagrabelny - mzagrabe at d.umn.edu - (218) 726 8844
>University of Minnesota Duluth
>Information Technology Systems & Services
>PGP key 1024D/84E22DA2 2005-11-07
>Fingerprint: 78F9 18B3 EF58 56F5 FC85  C5CA 53E7 887F 84E2 2DA2
>
>He is not a fool who gives up what he cannot keep to gain what he cannot
>lose.
>-Jim Elliot


><< signature.asc >>




>_______________________________________________
>syslog-ng maillist  -  syslog-ng at lists.balabit.hu
>https://lists.balabit.hu/mailman/listinfo/syslog-ng
>Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>

_________________________________________________________________
De makers van Hotmail hebben groot nieuws! Meer weten? Klik hier! 
http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl



More information about the syslog-ng mailing list