From owner-freebsd-isp Thu Jun 6 19: 0:41 2002 Delivered-To: freebsd-isp@freebsd.org Received: from zephir.primus.ca (mail.tor.primus.ca [216.254.136.21]) by hub.freebsd.org (Postfix) with ESMTP id A530C37B406 for ; Thu, 6 Jun 2002 19:00:34 -0700 (PDT) Received: from dialin-142-109.hamilton.primus.ca ([209.90.142.109]) by zephir.primus.ca with esmtp (Exim 3.33 #16) id 17G93N-0006hE-0A for freebsd-isp@FreeBSD.ORG; Thu, 06 Jun 2002 22:00:37 -0400 Date: Thu, 6 Jun 2002 22:00:33 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: freebsd-isp@FreeBSD.ORG Subject: Re: syslog-ng In-Reply-To: <3CFFC148.7080904@netscape.net> Message-ID: <20020606215026.M70295-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message