Unified management of remote logs for Linux servers

Source: Internet
Author: User
Tags rsyslog

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

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.