Re: Syslogd - Different Files
This sends the logs of local and remote machines to both the /var/log/message AND TO /var/log/remote. So it actually duplicates /var/log/messages. Does this work in your environment? Can you clarify the -a IP1/mask1 etc? Thanks Laurence Wojciech Puchar wrote: I have read the man pages: http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE However it is very confusing what exactly to add to the syslog.conf file. I have tried numerous variations but still no success. example on serwer blah.AAA.com +blah.AAA.com *.* -/var/log/messages *.* -/dev/ttyvb *.* @blah2.BBB.com -blah.AAA.com *.* -/var/log/remote this will log all OWN log to /var/log/messages, 12-th console and to server @blah2.BBB.com and will log all incoming messages from other hosts to /var/log/remote of course - in rc.conf don't forget to add syslogd_flags=-a IP1/mask1 -a IP2/mask2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Syslogd - Different Files
Hi, 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: http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE 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. Thanks in advance Laurence Mayer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Syslogd - Different Files
Ok so you dont use `+host' etc as per the man pages. Can you please send the relevant parts of syslog.conf on a remote server on lanx.domain.com. Do you mean remote server syslog.config: local6.*@208.70.104.202 Steve Bertrand wrote: Laurence Mayer wrote: Hi, 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: http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE 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): local6.*/var/log/lanx.log local7.*/var/log/fortigate.log mail.debug /var/log/barracuda.log ...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 208.70.104.202/32:514 -a 208.70.104.205/32:514 \ -a 208.70.104.1/32:514 -f /etc/syslogd.conf Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]