Syslogd - Different Files
steve at ibctech.ca
Wed Sep 24 12:49:27 UTC 2008
Laurence Mayer wrote:
> Over the last couple of days I have been trying to get syslogd to log
> messages received from remote hosts to different files.
> I have read the man pages:
> However it is very confusing what exactly to add to the syslog.conf
> file. I have tried numerous variations but still no success.
> Could someone please tell me or
> send an example of their syslog.conf file showing how this is done.
Granted that there is likely more than one way to do it, heres how I do
it (in the servers syslogd.conf):
...each log file represents a different remote host delivering the log
data. So, on lanx.domain.com, I point the syslog service to the IP of
the server, and tell it to use local6 as the facility.
I then start syslogd on the server as such:
/usr/sbin/syslogd -a 18.104.22.168/32:514 -a 22.214.171.124/32:514 \
-a 126.96.36.199/32:514 -f /etc/syslogd.conf
More information about the freebsd-questions