Note: The log files of multiple servers can be stored on one log server in a centralized and convenient way, and the server I/O load stress environment can be reduced: RedHatEnterpriseLinux5.8x8632bit process: 1. on the log server, edit the/etc/sysconfig/syslog file vim/etc/sysconfig/syslogSYSLOGD_OPTIONS = "-m0"
Note: log files of multiple servers can be stored on one log server in a centralized and convenient way.
It can also reduce the load on the server I/O.
Environment: Red Hat Enterprise Linux 5.8x86 32bit
Process:
1. Edit the/etc/sysconfig/syslog file on the log server
Vim/etc/sysconfig/syslog
SYSLOGD_OPTIONS = "-m 0"
Change
SYSLOGD_OPTIONS = "-m 0-r" //-r parameter: enable remote host Logging
Then restart the log server.
2. Modify the/etc/syslog. conf file on the client.
Vim/etc/syslog. conf
Change the storage path corresponding to the original log file type to @ IP, for example:
Authpriv. */var/log/secure
Change
Authpriv. * @ 172.16.8.1
Then let the syslog service reload the configuration file
Service syslog reload
At this point, the corresponding log files generated by the client are stored on the log server and stored as @ IP. The IP address is the IP address of the client, the premise is that hosts can access each other.
Note: If you have customized the log file type, you must create the corresponding log file type and storage path on the log file server.