1. Apache Access LogEnter command cat/usr/local/apache2.4/conf/extra/httpd-vhosts.conf, enter, see,The access log for this virtual machine is inside the/logs/111.com-access_log, enter the command ls/usr/local/apache2.4/logs/, you can see the access log file, see,You can use
Objective
Originally prepared to explain the Nginx and Apache logs, but the individual is not recommended Apache (purely personal hobby), here does not introduce the Apache log.
As a programmer, the code is more important than a little bit of the log analysis and query. Common logging and setting methods are listed below.
Configuration file
Nginx Sub-access_log and error_log two kinds of logs
Settin
Python Regular Expression Analysis nginx access logs and pythonnginx logs
Preface
The script in this article analyzes nginx access logs, mainly to check the number of visits to the site uri, the check results will be provided to the R D personnel for reference, because when
One, Apache access logs do not log static filesMost of the site elements are static files, tablets, CSS, JS, etc., these elements can not be recordedvim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//Change to the followingChange the virtual host configuration file to the following:DocumentRoot "/data/wwwroot/www.123.com"ServerName www.111.comServeralias 111.comSetenvif Request_uri ". *\.gif$" imgSetenvi
How to set the access permission for shared files on the LAN and record the access logs of shared files on the LANCurrently, many local networks have file servers, which usually share files for access by LAN users. However, to protect the security of shared files and prevent arbitrary
: This article mainly introduces how to count the ip traffic of the client based on nginx access logs in python. if you are interested in the PHP Tutorial, refer to it. Professional statistical websites, such as Baidu Statistics, Google Analytics, and cnzz, provide common statistical indicators for webmasters, such as uv, pv, online duration, and ip address, in addition, due to network reasons, I found that
Tomcat log, main directory
One Linux server and multiple Tomcat servers in Windows
Tomcat default http port 8080Tomcat shutdown port 8005 by defaultThere is also a connector port 8009
Configure access logs for Tomcat and access the Home Directory of the Home Page
Tags: des http io ar color OS sp for onJBoss 7 is slightly different than earlier version JBoss 5 or 6. The procedure to enable access logs in JBoss 7 are also changed and you must being familiar on how to enable access logs in JB OSS 7.
Go to Jboss/standalone/configuration folder
Add following in Standalo
Description
Operating system: CentOS
Site 1:bbs. 111cn.net
Site 2:sns. 111cn.net
Nginx Installation path:/usr/local/nginx
Nginx configuration file path:/usr/local/nginx/conf/nginx.conf
Site 1 configuration file path:/usr/local/nginx/conf/vhost/bbs.111cn.net.conf
Site 2 configuration file path:/usr/local/nginx/conf/vhost/sns.111cn.net.conf
Objective:
1, the site 1 and site 2 of the Nginx access log saved by day, log path is:
Site 1:/usr/local
1. configuring Nginx Automatic Log cutting is different from ApacheHTTPServer (Apache). Apache can redirect the log output through pipelines to enable automatic log cutting. Nginx in the current version has not been the same as Apache, using parameters such as % YY to create logs in batches by date, but
1. Configure Nginx to automatically cut logsDifferent from Apache HTTP Server (Apache), Apache can redirect log output through pipelines to perform Au
The following articles mainly show you how to view MySQL database operations, access records, and logs. We all know that MySQL database operations, access records, and logs are widely used, the following is a detailed introduction to these contents. 1. Check whether MySQLshowvariableslikelog_bi is enabled in your log.
Description
Operating system: CentOS
Site 1:bbs.jb51.net
Site 2:sns.jb51.net
Nginx Installation path:/usr/local/nginx
Nginx configuration file path:/usr/local/nginx/conf/nginx.conf
Site 1 configuration file path:/usr/local/nginx/conf/vhost/bbs.jb51.net.conf
Site 2 configuration file path:/usr/local/nginx/conf/vhost/sns.jb51.net.conf
Objective:
1, the site 1 and site 2 of the Nginx access log saved by day, log path is:
Site 1:/usr/local/nginx
Commercial Products for website or system user access logs include Google statistics, Baidu statistics, and quantum statistics. These products provide powerful functions and have poor customization, it is difficult to meet personalized needs. This article introduces a definition-basedCodeThis method records access logs
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 pro
Label: style HTTP color Io OS AR for SP File
prefix="localhost_access_log." suffix=".txt" pattern="%s %D %t %a %U" fileDateFormat="yyyy-MM-dd.HH" resolveHosts="false"/>The preceding logs record that the IP address filedateformat of the HTTP status code for a long time is saved every hour. . The default value is one day. Because the log is too large, it is generated every hour. Debugging is complete and you need to disable it.
Tomcat
/logs/cn.sougou_%y%m%d.log 86400" combined env= Sougou_robotCustomlog "|/usr/local/apache2/bin/rotatelogs-l/usr/local/apache2/logs/cn.wangyi_%y%m%d.log 86400" combined env= Wangyi_robotThen each day generates different logs to record, implementing different access logs to re
In centos, nginx Automatically splits access logs by date
The Web access log (access_log) records the access behaviors of all external clients to the Web server, including the Client IP address, access date, accessed URL resources, HTTP status codes returned by the server, a
minutes. 86400 is a 1-day representation.Attached rotatelogs InstructionsRotatelogs logfile [rotationtime [offset]] | [Filesizem]OptionsLogFileIt adds the base name to the log file name. If the logfile contains '% ', then it is treated as a format string for the strftime (3); otherwise, it is automatically appended with the. nnnnnnnnnn suffix in seconds. Both formats represent the time when the new log began to be used.RotationtimeThe interval of time in seconds for the log file to be rolled ba
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.