RedHatEnterpriseLinux5.8 remote storage of log files

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.