Hi Tomas,<br><br>I can't use syslog-ng because it's not included in RHEL package in DVD and company policy not to use non-rpm. I can use rsyslog and found it's the same config to syslog. Can I apply that rules in rsyslog? <br>
<br>Thanks.<br><br>James<br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 3:57 PM, Tomas Ruprich <span dir="ltr"><<a href="mailto:ruprich@uikt.mendelu.cz">ruprich@uikt.mendelu.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi James,<br>
i think much better for syslog server usage is syslog-ng. It has bit<br>
more difficult configuration for such a small network, but it brings<br>
much more functionalities.<br>
<br>
the simple ruleset for your needs could look like:<br>
<br>
source s_sys { unix-stream("/dev/log"); internal(); };<br>
source s_net { udp(); };<br>
<br>
destination d_net { file("/var/log/network/$HOST/$YEAR.$MONTH.log"<br>
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };<br>
<br>
log { source(s_net); destination(d_net); };<br>
log { source(s_sys); destination(d_net); };<br>
<br>
Hope it helps,<br>
Tomas<br>
<br>
<br>
Mon, Apr 12, 2010 ve 03:49:53PM +0800, James Corteciano napsal:<br>
<div><div></div><div class="h5">> Hi All,<br>
><br>
> I have three server. server0 is centralized logging server, server1 and<br>
> server2 are remote client servers. How can I properly configure the syslog<br>
> in server0 to log the two servers in different separated files/directories.<br>
> Example, server1 will be logged at /var/log/syslog/server1.log of server0<br>
> and /var/log/syslog/server2.log for server2 as well. Is there need of little<br>
> tweaking for syslog.conf ?<br>
><br>
> Thanks.<br>
><br>
> James<br>
<br>
</div></div>> _______________________________________________<br>
> CentOS mailing list<br>
> <a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
> <a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br>