/itemlogThe host name that generated the report is ' 192.168.1.102:8080 'Reading history information File ... webalizer.histGenerating report----for November 2004Generating consolidated reportsSaving history information File ...287 Records 0.04 secondsIn order for Webzlizer to run as planned, all now I write a script: (in/etc/rc.c/webalizer)Export home=/Export Path=/usr/binExport Ld_library_path=/usr/local/libExport Nls_lang=american_america. Zhs16gbkExport Classpath=/usr/local/libExport lang=zh
1. Apache logs are recorded by date
In the pache configuration file, findErrorlog logs/error_logCustomlog logs/access_log common
Linux system configuration method:
Change itErrorlog "|/usr/local/Apache/bin/rotatelogs/Home/logs/www/% Y _ % m _ % d_error_log 86400 480 ″Customlog "|/usr/local/Apache/bin/rotatelogs/Home/logs/www/% Y _ % m _ % d_access_log 86400 480
Specifies that the Apache log generates one file per day
Linux System Configuration Method
Found in Apache's configuration file httpd.conf
The code is as follows
Copy Code
ErrorLog Logs/error_logCustomlog Logs/access_log CommonChange it toErrorLog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480 "Custom
Apache optimized Application II (log management)DirectoryThe first part of the preparatory workSecond part installs Apache servicePart Three log management one (configuration log split)Part IV Log Management II (configuration Awst
Apache Default Site Directory settings
The Apache Default Web site Directory is in/var/www/html, we now want to change the site directory to/home/wwwroot/web1/htdocs, the following actions
To create a directory:Cd/homemkdir wwwrootCD Wwwrootmkdir Web1CD Web1mkdir HtdocsTouch index.php
Operation Steps:
1, vi/etc/httpd/conf/httpd.confFind the DocumentRoot "/var/www/html" section #
First, the Apache log is recorded by date
Found in the Pache configuration fileErrorLog Logs/error_logCustomlog Logs/access_log Common
Linux System configuration methods:
Change it toErrorLog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "| /usr/local/apache/bin/rotatelogs/h
Apache Log analysis is briefly introduced, mainly refer to the apache official website Log Files, manual reference http://httpd.apache.org/docs/2.2/logs.html
I. Log Analysis
If the default configuration is used during apache inst
1. apache logs are recorded by date. in the apache configuration file, locate errorlogs/error_logcustomlogs/access_logcommonLinux system configuration method: Change it to ErrorLog ldquo; |/usr/local/apache/bin/rotatelogs/hom "/>
1. apache logs are recorded by date
In the apache
Step one: Stop all the processes of the Apache service and delete the Error.log, access.log files in the apache2/logs/directory.
Step Two: Open the Apache httpd.conf configuration file and find the following two configurations.
The code is as follows
Copy Code
ErrorLog Logs/error.log Customlog Logs/access.log Common
Comment It out directly and replace it with the
Why do you want to split the log?
With the increase of website access, the log files generated by the Web server will become larger, if not split management, a single log file will become unusually large, not conducive to the comprehensive analysis of the log, monitoring and so on. In addition, when the server
When configuring a Web server, we generally record the requested information and the information about the error.
ErrorLog "/home/zhangy/apache/www.test.com-error.log"Customlog "/home/zhangy/apache/www.test.com-access.log" common
With the above configuration, if you do not delete it regularly, I think these log files can reach several g sizes over time. It is not
These days, due to the large differences in the statistical data of several different traffic statistical tools, I thought that we should analyze the apache access log, where the data should be the most authoritative. At the beginning, I wrote a simple analysis tool for emergency response and collected some simple data. The open-source Awstats should be a widely used and fully functional tool.
The installat
How to solve the problem that the Apache log file is too large
How to solve the problem that the Apache log file is too large
Method 1,In httpd. conf, findChange CustomLog logs/access. log commonCustomLog "|/usr/sbin/cronolog/usr/local/apache2/logs/access _ % Y % m % d.
The Apache server Log analysis application instance rhinux was published in: 2004-11-2822: 11. the rapid development of the Internet, whether it is a traditional enterprise website or an Internet enterprise, in order to understand their own customer sources, click rate and other information, especially for the analysis of website logs, the following is my log ana
One, Apache log segmentationWith the increasing access to the Web site, by default, the Apache server generates a single log file will be more and more large, if the log is not split, then the log file occupies a large amount of d
1. apache logs are recorded by dateIn the apache configuration file, findErrorLog logs/error_logCustomLog logs/access_log commonLinux system configuration method:Change itErrorLog "|/usr/local/apache/bin/rotatelogs/home/logs/www/% Y _ % m _ % d_error_log 86400 480 ″CustomLog "|/usr/local/apache/bin/rotatelogs/home/logs
-l logs/access-% Y-% m-% d. log 86400 Prime; common This is simple. Just put it in. The error log is shown below.This section describes windows users. linux uses cronolog to separate apache logs.The cronolog tool can be run in linux or on a windows host. The installation method of linux is very simple. You can do it by using make install.
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.