Home > OS >  Urgent, according to the requirements in the log to the specified location centralized management to
Urgent, according to the requirements in the log to the specified location centralized management to

Time:09-24

According to the requirements to make the experimental steps, men of great god solve

CodePudding user response:

Don't stick!!!!!!!!!!!!!!!

CodePudding user response:

Modify/etc/rsyslog. Conf file

Server:
# Provides UDP syslog reception//use the UDP protocol to receive remote log
# $ModLoad imudp//load the udp module
# $UDPServerRun 514//server listening on port 514

Client:
# remote host is: name/IP: port, i.e 192.168.0.1:514, the port optional
@ @ # *. * remote host: - 514 two @ @ is to use TCP, a @ use UDP pass you use UDP is *. * @ 192.168.1.20:514

The specified file, didn't try, just know that you can customize the log storage directory, format

CodePudding user response:

refer to the second floor zhouchao6 response:
modify/etc/rsyslog. Conf file

Server:
# Provides UDP syslog reception//use the UDP protocol to receive remote log
# $ModLoad imudp//load the udp module
# $UDPServerRun 514//server listening on port 514

Client:
# remote host is: name/IP: port, i.e 192.168.0.1:514, the port optional
@ @ # *. * remote host: - 514 two @ @ is to use TCP, a @ use UDP pass you use UDP is *. * @ 192.168.1.20:514

The specified file, didn't try, just know that you can customize the log storage directory, format
thank you big brother