Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2008 10:16:27 +0300
From:      Laurence Mayer <laurence@istraresearch.com>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Syslogd - Different Files
Message-ID:  <48DB3ACB.9000900@istraresearch.com>
In-Reply-To: <20080924190700.D65094@wojtek.tensor.gdynia.pl>
References:  <48DA2333.3070007@istraresearch.com> <20080924190700.D65094@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

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.conf&sektion=5&manpath=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 ...."





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48DB3ACB.9000900>