From owner-freebsd-isp Fri Jun 7 4:43: 2 2002 Delivered-To: freebsd-isp@freebsd.org Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id A918337B40B for ; Fri, 7 Jun 2002 04:42:49 -0700 (PDT) Received: from wash by ns2.wananchi.com with local (Exim 3.36 #1 (FreeBSD)) id 17GI8Y-000APy-00 for ; Fri, 07 Jun 2002 14:42:34 +0300 Date: Fri, 7 Jun 2002 14:42:34 +0300 From: Odhiambo Washington To: freebsd-isp@FreeBSD.ORG Subject: Re: syslog-ng Message-ID: <20020607114234.GB22692@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-isp@FreeBSD.ORG References: <3CFFC148.7080904@netscape.net> <20020606215026.M70295-100000@lethargic.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020606215026.M70295-100000@lethargic.dyndns.org> User-Agent: Mutt/1.4i X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Mollison's Bureaucracy Hypothesis: If an idea can survive a bureaucratic review and be implemented it wasn't worth doing. X-Operating-System: FreeBSD 4.5-STABLE i386 X-Best-Window-Manager: Blackbox X-Mailer: Mutt http://www.mutt.org/ X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 2:41PM up 4 days, 5:25, 2 users, load averages: 0.39, 0.42, 0.41 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Jason Hunt [20020607 05:00]: wrote: > On Thu, 6 Jun 2002, Mikel King wrote: > > > Anyone have cisco routers logging to syslog-ng? trying to find a quick > > config to capture all info from the router... > > > > I'm not logging to syslog-ng, just plain syslogd. I'm tell the cisco > devices to use the localX facilities. Here's the general idea with two > different cisco devices logging to one *nix machine: > > > CISCO #1: > ! > version 12.2 > service timestamps log uptime > ! > hostname router1 > ! > logging trap debugging > logging facility local6 > logging 207.176.213.10 > ! > end > > > CISCO #2: > ! > version 12.0 > service timestamps log uptime > ! > hostname switch1 > ! > logging trap debugging > logging facility local5 > logging 207.176.213.10 > ! > end > > > /etc/syslog.conf ON UNIX MACHINE: > local6.* /var/log/cisco > local5.* /var/log/switch > > > The "service timestamps log" line in the cisco configs could also have a > bunch of other options, such as "datetime", "msec", "localtime" and > "show-timezone". I don't use these because syslog timestamps it when > writing to the file. > > Hope this helps. Hiya, Suppose you have 2 or 3 Cisco routers with just 1 syslog server...how do you separate the logs??? -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) Real Users hate Real Programmers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message