Apache Log Polling Technology

Source: Internet
Author: User
Tags apache log

1. First download the log polling tool to install Apache Cronolog:

1 wgethttp//cronolog.org/download/cronolog-1.6.2.tar.gz2 3 TarZXVF cronolog-1.6.2.Tar. GZ4 5CD cronolog-1.6.26 7 mkdir-p/usr/local/Cronolog8 9./configure--prefix=/usr/local/CronologTen  One  Make A  -  Make Install

Cronolog Log Polling Configuration description:

Polling by day (common usage in production environment, recommended):

1 " |/usr/local/sbin/cronolog/logs/access_www_%y%m%d.log " combined   (hint: Cronolog polling the correct wording of the log, the log path being polled to write the full path (log by day, log is not automatically overwritten))

Poll by hour (common usage in production environments):

1 " |/usr/local/sbin/cronolog/logs/access_www_%y%m%d%h.log " (Hint: This configuration may be appropriate if you need to analyze Apache logs in a timely and detailed manner.)

Weekly polling (production environment is more commonly used):

1 " |/usr/local/sbin/cronolog/logs/access_www_%w.log " combined

Apache Log Polling Technology

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.