Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 1999 13:43:46 +0100
From:      Cillian Sharkey <cillian@baker.ie>
To:        "Michael D. Harlan" <r3mdh@rworld.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: syslog - logging to remote machine
Message-ID:  <37C68802.6FEA0877@baker.ie>
References:  <19990827054224.A6165@rworld.org>

next in thread | previous in thread | raw e-mail | index | archive | help
First of all, read these two man pages on FreeBSD:
syslogd(8) and syslog.conf(5)
they contain all the info you need..

> First of all, I assume we're going to need some firewall modifications
> made to ipfw. What port does syslogd use to log it's messages to the
> remote machine? Also, TCP or UDP?  or both?

syslog uses UDP port 514. You'll need to make sure that barney
can send out on UDP/514 and andy can receive in on UDP/514 and
that any firewall lets the packets through..
 
> Now, I've read in a couple of places (but not everywhere) that we'll need
> a file called /etc/syslog.auth on andy.  No where have I seen the syntax
> of this file.  Am I correct to assume it's:

the syslog man page on FreeBSD does not mention this file
anywhere..might
have been for a different 'brand' of syslogd..

running syslogd with the '-a' option followed by the IP address
of barney should do the trick (I think)
 
> [barney:/etc/syslog.conf]
> *.notice;kern.debug;lpr.info;mail.crit;news.err         @andy

that looks ok.
 
> Should there be any changes to andy's /etc/syslog.conf?  How can I have
> andy tell which logs are HIS and which are BARNEY'S?  (Example: if I want
> andy's messages to be written to /var/log/messages.andy and barney's
> written to /var/log/messages.barney)

syslog messages always by default include the machine name that the log
message came from (just after the time+date field), so there's no
explicit
need to seperate into two log files.

I don't know if syslogd will let you filter on machine name (again
consult
the syslog.conf man page) You could always redirect all messages into
one file
and then write a script to split it up...

Hope this helps,
Cillian


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?37C68802.6FEA0877>