另有更易使用的apachetop和goaccess
wtop is really cool application for web server log analysis and to see server stats at a glance. It also has powerful log grepping capability. It is just like 'top' for your webserver.
It can find out number of searches or signups per seconds. It can also create histogram of response time. There is also another tool called logrep a powerful command-line program for ad-hoc analysis and filtering for log files. You can dig up lots of information using wtop tools.
You need Python version 2.5 to run wtop.
Download wtop
Type the following command:
$ cd /tmp
$ wget http://wtop.googlecode.com/files/wtop-0.5.6.tar.gz
$ tar -zxvf wtop-0.5.6.tar.gz
$ cd wtop-0.5.6
# python setup.py install
Configuring wtop
Once installed you can start using the tool immediately. You need to edit /etc/wtop.cfg file to setup parameters, Apache log files and other directives
# vi /etc/wtop.cfg
Sample configuration file:
[main]
LOG_ROOT=/var/log/lighttpd/cyberciti.biz/
LOG_FILE=access.log
DEFAULT_OUTPUT_FIELDS=ts,class,ipcnt,ip,msec,uas,url
# This must match your webserver log format. You MUST have at least %h, %r and %D
LOG_FORMAT=%h %l %u %t "%r" %>s %B "%{Referer}i" "%{User-Agent}i" %D
[wtop]
# max time before a request is logged in the "slow" column
MAX_REQUEST_TIME=5000
# minimum requests/second before a URL class appears in top mode
MIN_RPS=0.2
[classes]
# you can extend these to make any classes you wish
home=^/(?:\?.*)?$
xml=\.xml(?:\?.*)?$
js=\.js(?:\?.*)?$
css=\.css(?:\?.*)?$
img=\.(?:png|gif|jpe?g|cur|ico|bmp)(?:\?.*)?$
[patterns]
# the generic pattern is applied if a line does not match any
# of the named classes. By default it uses the top-level directory.
generic=^/([^/\?]+)
# incomplete list of known web robots
robots = r'(?:nutch|MSRBOT|translate.google.com|Feedster|Nutch|Gaisbot|Snapbot|VisBot|libwww|CazoodleBot|polybot|VadixBot|Sogou|SBider|BecomeBot|Yandex|Pagebull|chudo|Pockey|nicebot|entireweb|FeedwhipBOT|ConveraCrawler|NG/2.0|WebImages|Factbot|information-online|gsa-crawler|Jyxobot|SentinelCrawler|BlogPulseLive|YahooFeedSeeker|GurujiBot|wwwster|Y\!J-SRD|Findexa|SurveyBot|yetibot|discoveryengine|fastsearch|noxtrum|Googlebot|Snapbot|OGSearchSpider|heritrix|nutch-agent|Slurp|msnbot|cuill|Mediapartners|YahooSeeker|GrabPERF|keywen|ia_archiver|crawler.archive.org|Baiduspider|larbin|shopwiki)'
Now simply type wtop at a shell prompt:
$ wtop$
See all human traffic, enter:
$ logrep -m top -h access.log
See response times for all MSNBot homepage hits:
$ logrep -m grep -g MSNBot -i home -o status,msec,url access.log
Display the current log for traffic to pages about wordpress or themes sent from google.com
$ logrep -m tail --f 'url~wordpress|themes,ref~google.com' access.log
分享到:
相关推荐
这个名为"apache-web-server-lm.zip"的压缩包包含了关于Apache Web Server的配置手册,旨在帮助用户更好地搭建和管理自己的网站。让我们深入探讨一下Apache Web Server的主要特点、配置方法以及如何利用提供的手册...
Apache FTPServer是一款开源的FTP(File Transfer Protocol)服务器软件,主要负责在互联网上进行文件传输。这个特定的压缩包“apache-ftpserver-1.1.1.zip”包含了该服务器软件的v1.1.1版本,适用于Linux和Windows...
Apache FtpServer 可以与 Spring 框架集成,以便在 Web 应用程序中使用 FTP 服务。 ### 基于 commons-net 的文件上传下载 commons-net 库提供了文件上传下载的功能,可以与 Apache FtpServer 集成,以便实现文件...
Apache FTPServer是一款开源的FTP服务器软件,它是Apache软件基金会的一部分,设计用于提供可靠且高效的文件传输服务。在本文中,我们将深入探讨如何安装和配置Apache FTPServer,以及它的一些核心特性。 首先,让...
### 安装 Apache HTTP Server 的详细步骤 #### 一、准备环境与下载源码包 在开始安装 Apache HTTP Server 之前,确保您的操作系统是 Solaris 10,并且已准备好安装所需的目录。按照示例中的步骤,我们将在 `/...
Apache HTTP Server 是一个流行的开源 Web 服务器软件,广泛应用于 Linux 平台上。本文将指导您如何在 Redhat Linux 5.6 X64 系统上安装 Apache HTTP Server 2.4.6。 在开始安装之前,需要安装一些必要的依赖项,...
Apache Web Server 2.0.40是在Linux操作系统环境下运行的一款广泛应用的开源Web服务器软件。它的功能强大且灵活,能够支持多种操作系统,并且是互联网上最常用的Web服务器之一。这个版本(2.0.40)尽管较老,但在很...
Apache Log4j 2.3 和 Commons Logging 1.2 是两个在Java Web开发中广泛使用的日志处理库。这两个库对于记录应用程序的运行时信息、调试错误和监控系统状态至关重要。 **Apache Log4j 2.3** Log4j 是 Apache 组织...
从零开始介绍Apache FtpServer,并一步一步教你配置Apache FtpServer,更高级的应用,教你用写代码控制Apache FtpServer及集成到自己的应用中 <!--ftp端口 --> <!--绑定的服务器IP地址,多网卡的时候使用...
Apache Flume, Distributed Log Collection for Hadoop,2015 第二版,Packt Publishing
"基于Apache Web Server的校友会捐赠网站的设计与开发" 本文主要介绍了基于Apache Web Server的校友会捐赠网站的设计与开发,旨在实现校友捐赠和捐赠管理等功能,以便于校友通过网站进行捐赠登记、捐赠查询、了解...
最流行的Web服务器软件。快速、可靠、可通过简单的 API 扩展,Perl/Python 解释器可被编译到服务器中,完全免费,...如果你需要创建一个每天有数百万人访问的 Web 服务器,Apache 可能是最佳选择。解压密码www.faji.com
最流行的Web服务器软件。Linux + Apache是目前免费服务器中的最佳拍挡。Apache快速、可靠、可通过简单的API扩展,Perl/Python解释器可被...如果你需要创建一个每天有数百万人访问的Web服务器,Apache可能是最佳选择。
Apache HTTP Server 2.2.29 是一个广泛使用的开源Web服务器软件,它以其稳定性、灵活性和可扩展性而闻名。这个msi安装版适用于Windows操作系统,提供了方便的图形化安装流程来设置和配置Apache服务器。该安装包包含...
Apache HTTP Server,通常简称为Apache,是世界上最流行的Web服务器软件之一,它开源、免费,并且具有高度可扩展性。此API文档是Apache服务器的核心组成部分,提供了详细的开发接口和指南,帮助开发者了解如何与...
Apache Ftpserver是一款开源的FTP服务器软件,由Apache软件基金会维护。它提供了高度可配置性和模块化设计,使得用户可以根据需求定制自己的FTP服务环境。在本资料包中,你将获得Apache Ftpserver的全套资源,包括...
Ansible-Docker-Apache DOCKER中的APACHE WEBSERVER配置 :whale: 使用ANSI
标签:server、proxy、apache、web、hadoop、yarn、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变...
Apache James是开源的邮件服务器项目,它基于Java技术构建,提供了全面的邮件服务功能,包括邮件接收、发送、存储以及管理。"apache-james-2.3.2.jar"是该项目的一个版本,此版本为2.3.2,通常包含了运行Apache ...
### Apache FTP Server 使用详解 #### 背景介绍 在当今的数据传输领域,FTP (File Transfer Protocol) 作为一项成熟的技术被广泛应用于文件传输场景。Apache FTP Server 是一个基于 Java 的开源 FTP 服务器,它...