Wdcp configures and processes site access logs

Source: Internet
Author: User
Wdcp allows you to set and process site access logs. wdcp starts from version 2.2 and supports web log cutting, saving by day, and compressing and packaging. you can set retention and retention days, as shown in the following system settings, the system can automatically cut and compress each day. keep the settings for the last 7 days. Note that this is the general switch settings... 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!
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.