Linux under Log Management tool (Rotatelogs/logrotate/cronolog)

Source: Internet
Author: User

"Rotatelogs"

    • Rolatelogs is a tool inside the apache2-utils. Installation commands under Ubuntu Server 18.04:

sudo apt install apache2-utils
    • Fixed log file with a maximum volume of 1 m: (see https://unix.stackexchange.com/a/374622)

Your_program | Rotatelogs-n 1/var/log/logfile 1M


"Logrotate"

    • Logrotate is the next common Log management tool for Linux systems. (GitHub)


"Cronolog"

    • Cronolog is a simple filter program that reads log file entries from standard input and outputs each entry and writes the file name template and current date and time to the specified log files. When the extension file name changes, the current file is closed and newly opened. Cronolog is designed to be used with a Web server, such as Apache, to split access logs for daily or monthly logs.


Walker * * *


Linux under Log Management tool (Rotatelogs/logrotate/cronolog)

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.