From owner-freebsd-questions Mon Oct 28 9:42:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CD9C37B401 for ; Mon, 28 Oct 2002 09:42:34 -0800 (PST) Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D905643E88 for ; Mon, 28 Oct 2002 09:42:33 -0800 (PST) (envelope-from domlam@earthlink.net) Received: from sqalabdom (sc-f100-01.extremenetworks.com [63.251.106.30]) by mtaout04.icomcast.net (iPlanet Messaging Server 5.1 HotFix 1.4 (built Aug 5 2002)) with ESMTPA id <0H4P00KORD6NOF@mtaout04.icomcast.net> for freebsd-questions@FreeBSD.ORG; Mon, 28 Oct 2002 12:42:24 -0500 (EST) Date: Mon, 28 Oct 2002 09:41:43 -0800 From: Dom Lam Subject: Re: getting my router to log to my Freebsd box help ? To: Brent Bailey , freebsd-questions@FreeBSD.ORG Message-id: <001801c27ea9$4bcbdea0$652ec90a@sqalabdom> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Mailer: Microsoft Outlook Express 5.50.4807.1700 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <27046.207.5.142.198.1035379127.squirrel@bmyster.com> <20021023134530.GH9627@freepuppy.bellavista.cz> <1044.207.5.219.94.1035383312.squirrel@bmyster.com> <48376.207.5.142.198.1035822043.squirrel@bmyster.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey Brent, Here's what I have for part of my syslog.conf local1.warning /var/log/sqa/TonyWarning local1.crit /var/log/sqa/TonyCritical I am logging to local1 crit and warning messages to files TonyCritical and TonyWarning level messages respectively. The one thing is you must have those files and path already there to write to also go to /etc/defaults/rc.conf and edit syslogd there. I have in mine: ### Network daemon (miscellaneous) ### syslogd_enable="YES" # Run syslog daemon (or NO). syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one. # syslogd_flags="s" # Flags to syslogd (if enabled). You should also be able to place this in your regular /etc/rc.conf. Let me know how you make out. I can research the Cisco side too if you want but I have confidence you got that right. -Dom ----- Original Message ----- From: "Brent Bailey" To: Cc: ; Sent: Monday, October 28, 2002 8:20 AM Subject: Re: getting my router to log to my Freebsd box help ? > That didnt seem to work .. I was reading on cisco's site that i might have > to edit /etc/syslog.conf with something like: > "local7.* /usr/log/cisco/ubr-syslog.log" > > so ive tried both senarios...and still nothing .. is it one or the other > or both things that need to be added or changed ??any help is VERY appreciated > > Brent Bailey CCNA > > > > so would it be something like > > > > syslogd -a 172.16.x.x/24:UDP port number ?? > > > > if this is so ... > > can i do this multiple times ??? > > I have multiple routers that i want to log to this FreebSD machine so > > would i do the command above on multiple lines ?? > > > > or like : > > syslogd -a 172.16.x.x/24:xxx 172.16.x.x/24:xxx ??? > > > > thanx > > Brent > > > > > >> # misterb@bmyster.com / 2002-10-23 09:18:47 -0400: > >>> Im trying to get my Cisco router to log to my FBSD machine..Im using > >>> Freebsd 4.5 > >>> I have no issues with the router ...however im having issues trying > >>> to get syslog OR syslogd to accept UDP log traffic from my router > >>> ...and have it write to a flat text file. > >>> im under the assumtion that you use: > >>> syslogd -a > >> > >> the man page says that the format is "ipaddr/masklen[:service]". > >> that doesn't look like the "/masklen" part is optional. > >> > >> -- > >> If you cc me or take the list(s) out completely I'll most likely > >> ignore your message. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message