0

I have connected two of my computers to form a network, with only an ethernet cable between them. They are both Ubuntu 12.04, and can ping each other without a problem. For the logs, I want to forward IP address 10.0.0.1 and the want I want to send to is 10.0.0.2.

I wanted to redirect the logs via TCP, so in the client I added the following line to the /etc/rsyslog.conf file, as I read in many how to guides, as follows:

*.* @@10.0.0.2:514

Then in the machine with address 10.0.0.2, where I wanted the logs to be forwarded to I uncommented the lines below, again as I understand the correct configuration to be.

$ModLoad imtcp
$InputTCPServerRun 514

I can't see that I need to do anything else based on the guides I have read. I have restarted both machines, but I can't see anything in /var/log which suggests that another machines logs are being saved.

Where should they be being saved? Thanks for reading.

4

1 回答 1

0

在 10.0.0.2 的 rsyslog 配置中,您应该有一些过滤器,例如:

*.* /var/log/syslog

有关详细信息,请参阅 rsyslog 文档的过滤条件部分。

于 2013-12-07T16:18:01.607 回答