Wdcp configures and processes site access logs

Source: Internet
Author: User

Wdcp configures and processes site access logs
Wdcp starts from Version 2.2 and supports web Log cutting, saving by day, compressing and packaging, and setting retention and days

Specific settings are as follows:
System settings are shown in figure



In this way, you can automatically cut, compress, and retain the last 7 days.


Note
Here is the general switch settings. Specifically, the log function must be enabled on the site to be effective. If site logs are not enabled, the settings here are ineffective.

At the same time, there is a default log record in the system. If site logs are not enabled, they will be recorded in the default log file. The directory is
/Www/wdlinux/nginx/logs/
/Www/wdlinux/apache/logs/


Disable the default log. You can view the following information:
The default web access log is on.
This log is useless in general, but it is useful for data analysis.

If you don't need it, you can disable it and it will also improve the performance. Here, the default server web default log is disabled.

If logs are still available for the site, the default directory is/www/web_logs.
Site logs are recorded as file names starting with the website Domain Name
Site logs can also be enabled based on the actual situation.

Three methods
1. Directly disable "system settings" in the wdcp background
2. Run/www/wdlinux/tools/web_logs.sh on/off // on or off (after wdcp_v2.5)
3. perform the following manual operations:

How to disable nginx
Sed-I '/log_format/\
Access_log off; '/www/wdlinux/nginx/conf/nginx. conf

How to disable apache
Sed-I's # CustomLog "logs/access_log" common # CustomLog/dev/null common # '/www/wdlinux/apache/conf/httpd. conf
 
This tutorial is taken from the wdlinux Forum http://www.wdlinux.cn/bbs/. For more information, see!

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.