[syslog-ng]Missing returns?
Adrian Bool
aid@vianetworks.net
Wed, 17 Jan 2001 13:19:12 +0000
Hi,
I'm running syslog-ng-1.4.9a on a RedHat 7 box.
I'm receiving syslog UDP messages from several cisco
routers - and writing those messages to a file.
Allow works OK, except the messages are all batched on
lines - each line being 1077 bytes long - instead of
each message being on a separate line.
The syslog messages are definatley coming in separately
(verified with ngrep).
My syslog config is below - the 'core' items are the ones
handling these data from the routers. All logs from this
box itself are fine.
Any ideas?
Thanks
aid
#
# Syslog-ng example configuration for for Debian GNU/Linux
#
# Copyright (c) 1999 anonymous
# Copyright (c) 1999 Balazs Scheidler
# $Id: syslog-ng.conf.sample,v 1.2 1999/11/15 12:30:41 bazsi Exp $
#
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation.
#
#options { use_fqdn(yes); long_hostnames(on); sync(0); };
options { use_fqdn(yes); sync(0); };
source local { unix-stream("/dev/log"); internal(); };
source net { udp(); };
destination authlog { file("/opt/log/auth.log"); };
destination syslog { file("/opt/log/syslog"); };
destination cron { file("/opt/log/cron.log"); };
destination daemon { file("/opt/log/daemon.log"); };
destination kern { file("/opt/log/kern.log"); };
destination lpr { file("/opt/log/lpr.log"); };
destination user { file("/opt/log/user.log"); };
destination uucp { file("/opt/log/uucp.log"); };
destination mail { file("/opt/log/mail.log"); };
destination mailinfo { file("/opt/log/mail.info"); };
destination mailwarn { file("/opt/log/mail.warn"); };
destination mailerr { file("/opt/log/mail.err"); };
destination newscrit { file("/opt/log/news/news.crit"); };
destination newserr { file("/opt/log/news/news.err"); };
destination newsnotice { file("/opt/log/news/news.notice"); };
destination debug { file("/opt/log/debug"); };
destination messages { file("/opt/log/messages"); };
destination console { usertty("root"); };
destination console_all { file("/dev/tty12"); };
#destination loghost { udp("loghost" port(999)); };
destination core_debug { file("/opt/log/core/debug.$YEAR.$MONTH"); };
destination core_default { file("/opt/log/core/default.$YEAR.$MONTH"); };
destination xconsole { pipe("/dev/xconsole"); };
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_news { facility(news); };
filter f_debug { facility(debug); };
#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); };
filter l_debug { level(debug); } ;
log { source(local); filter(f_authpriv); destination(authlog); };
log { source(local); filter(f_syslog); destination(syslog); };
log { source(local); filter(f_cron); destination(cron); };
log { source(local); filter(f_daemon); destination(daemon); };
log { source(local); filter(f_kern); destination(kern); };
log { source(local); filter(f_lpr); destination(lpr); };
log { source(local); filter(f_mail); destination(mail); };
log { source(local); filter(f_user); destination(user); };
log { source(local); filter(f_uucp); destination(uucp); };
log { source(local); filter(f_mail); filter(f_info); destination(mailinfo); };
log { source(local); filter(f_mail); filter(f_warn); destination(mailwarn); };
log { source(local); filter(f_mail); filter(f_err); destination(mailerr); };
log { source(local); filter(f_news); filter(f_crit); destination(newscrit); };
log { source(local); filter(f_news); filter(f_err); destination(newserr); };
log { source(local); filter(f_news); filter(f_notice);
destination(newsnotice); };
log { source(local); filter(f_debug); destination(debug); };
log { source(local); filter(f_messages); destination(messages); };
log { source(local); filter(f_emergency); destination(console); };
log { source(local); destination(console_all); };
log { source(net); filter(l_debug); destination(core_debug); };
log { source(net); filter(DEFAULT); destination(core_default); };
--
Adrian Bool | http://noc.vianetworks.net/
Director, Global Network | tel://+44.1925.484061/
VIA NET.WORKS Inc. | fax://+44.1925.484466/