Apache Log Split

Source: Internet
Author: User

1.cronolog InstallationApache Log Segmentation using the Cronolog toolhttp://download.chinaunix.net/download.php?id=3457&ResourceID=1851Download upload installation package file to serverInstall the log split tool:[email protected] ~]# cd/data/[[email protected] data] #tar-XVF cronolog-1.6.2.tar.gz[[email protected] cronolog] #cd cronolog-1.6.2[email protected] Cronolog]#./configure–prefix=/data/cronolog[[email protected] cronolog] #make[[email protected] cronolog] #make install2. Split Apache logsmodify the corresponding area in the httpd-vhosts.conf file as follows, split the log, and split the log directory. in each VirtualHost, add two sentences to the configuration. transferlog "|/data/cronolog/sbin/cronolog/data/apache/logs/access.log%y%m%d"errorlog "|/data/cronolog/sbin/cronolog/data/apache/logs/error.log%y%m%d"

Apache Log Split

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.