Date: Thu, 6 Jun 2002 22:00:33 -0400 (EDT) From: Jason Hunt <jhunt@lynden.on.ca> To: freebsd-isp@FreeBSD.ORG Subject: Re: syslog-ng Message-ID: <20020606215026.M70295-100000@lethargic.dyndns.org> In-Reply-To: <3CFFC148.7080904@netscape.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020606215026.M70295-100000>