Apache Log poll for Linux Cronolog

Source: Internet
Author: User

Linux running Web server Apache, the default log file is not split, an entire file is not easy to manage, and not easy to analyze statistics. After installing Cronolog, you can split the log files by time, which is easy to manage and analyze.

Cronolog installation configuration is very simple, after downloading only need to enter a few commands to complete.

1. Download (latest Version)

#  wget http://

If this link fails, please go to this link:

http://download.chinaunix.net/download.php?id=3457&resourceid=1851

2 Decompression

# tar zxvf cronolog-1.6. 2. tar.gz

3. Enter the directory where the Cronolog installation files are located

# CD cronolog-1.6. 2

4 Installation

#./configure
Make && make install

5 View the directory where the Cronolog is installed (verify that the installation was successful)

Ll/usr/local/sbin/cronolog

6 httpd-vhosts.conf configuration in Apache

" |/usr/local/sbin/cronolog/hongxin/logs/apache/access_default_%y%m%d.log " combined

Poll by day

7 Restart Apache to view logs:

1 791  A : Access_default_20160612.log

Log has been generated

Apache Log poll for Linux 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.