Syslog Remote Log Storage

xiaoxiao2021-03-06  13

A machines and B letters, A-machine do log data storage servers, the B-machine is the Syslog log.

How do two hosts /etc/slog.conf to set up log remote storage?

B-machine modified /etc/syslog.conf, add the following statement

* .info @A

A machine modified /etc/syslog.conf, add the following statement

* .info / var / log / everyInfo # All log information is written in / var / log / everyinfo file

Edit the A-machine / etc / sysconfig / syslog,

Syslogd_options = "- m 0"

change into

Syslogd_options = "- r -m 0"

Restart the syslog service of the two machines of A, B.

If the configuration is successful, both both the UDP 514 port listener

test:

On the B machine, see if the A-machine / var / log / everyinfo can receive the LOG information of the B machine, and can receive the configured success.

转载请注明原文地址:https://www.9cbs.com/read-67545.html

New Post(0)