Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2002 09:41:43 -0800
From:      Dom Lam <domlam@earthlink.net>
To:        Brent Bailey <misterb@bmyster.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: getting my router to log to my Freebsd box help ?
Message-ID:  <001801c27ea9$4bcbdea0$652ec90a@sqalabdom>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <misterb@bmyster.com>
To: <misterb@bmyster.com>
Cc: <neuhauser@bellavista.cz>; <freebsd-questions@FreeBSD.ORG>
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 <ip address of router>
> >>
> >>    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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001801c27ea9$4bcbdea0$652ec90a>