How to log separate files or directories for centralizing SysLog server ?

Romeo Theriault romeotheriault at gmail.com
Mon Apr 12 08:41:35 UTC 2010


On Mon, Apr 12, 2010 at 4:49 PM, James Corteciano <james at linux-source.org>wrote:

> Hi All,
>
> I have three server. server0 is centralized logging server, server1 and
> server2 are remote client servers. How can I properly configure the syslog
> in server0 to log the two servers in different separated files/directories.
> Example, server1 will be logged at /var/log/syslog/server1.log of server0
> and /var/log/syslog/server2.log for server2 as well.
>

You can't do this with plain old syslog. You'll need to use an alternative
syslog package to accomplish what you want. Two well known syslog packages
that can do what you want are syslog-ng and rsyslog.

-- 
Romeo Theriault
System Administrator
Information Technology Services



More information about the redhat-list mailing list