Linux Log Rotation

Source: Internet
Author: User
Tags custom name
The effect of log rotation is to change the original log record locally to a remote device.
Implementation criteria: Two Linux hosts, one is (localhost) generate logs, another (remote host) is responsible for receiving logs in the distance

Local Host:
1. Modify the linked device into a custom name: LOCAL5

2, after saving the file is not recorded in the local, but to the LOCAL5 custom device

3, modify the Rsyslog.config file corresponding to the custom LOCAL5

4. Restart the log configuration file

Remote host (receive side):
1, modify the log configuration file, the default is not to receive foreign logs, need to modify

2, the lifting of these two lines of implementation can receive foreign logs, and specify where the incoming file exists (in advance to create this place)

Linux Log Rotation

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.