Remote Log Configuration
1. Service-side
(1) Edit log file vim/etc/rsyslog.conf
Restart Log service/etc/init.d/rsyslog restart
(2) Recursively search for all files containing fromhost information under/usr/share/doc/rsyslog-5.8.10/
Grep-r fromhost/usr/share/doc/rsyslog-5.8.10/
(3) Create a name in the directory where you stored your log files and copy the path IP pasted over vim/etc/rsyslog.d/feiyu.conf
(If you are managing multiple server logs, you can continue adding them in the following format (one write two lines).)
(4) Restart log service/etc/init.d/rsyslod restart
2. Client
(1) Edit the log file (the custom store directory path is commented out here by using: Set Nu to display the callout line, and in by: 34,61s/^/#/g comment)
Vim/etc/rsyslog.conf
(2) Restart log service/etc/init.d/rsyslog restart
3. Verify (Remember to verify at the same time and turn off the firewall first, otherwise the validation fails)
Service side: Tail-f/var/log/client.log
Client: Logger "123
Unified management of remote logs for Linux servers