GoAccess-apache日志动态分析软件如何安装
2014-02-05 20:31
483 查看
Description
GoAccess is a very handy tool, that runs in the terminal on most *nix Systems (e.g. Linux, Mac OS X, BSD etc.) and displays relatime data gathered from Apache’s access logfile.It offers a very structured display with different “modules” that break down the parsed access.log data into sections:
General Statistics – Information analyzed from log file – Unique totals
Unique visitors per day – Including spiders
Requested files (Page-URL)
Requested static files (images, stylesheets etc.)
Referrer URLs
HTTP 404 Not Found response code
Operating Systems
Browsers
Hosts
HTTP Status Codes
Top Referring Sites
Top key phrases used on Google
Each module has a detail view that can be opened by pressing “o”. The detail view gives you a scrollable list with more information on the currently selected data.
Installation
Since I couldn’t find a package for GoAccess in Debian lenny’s apt sources, I took the manual compile route. But the installation is still really easy and fast.Make sure you’ve got the GLIB2, ncurses & GeoIP packages installed.
aptitude install libglib2.0-dev, libncurses5-dev, libgeoip-dev
Download the latest GoAccess tarball from http://goaccess.prosoftcorp.com/download and uncompress it on your webserver.
At the time of writing the current version was GoAccess 0.3.3.
Go into the newly created folder where the uncompressed files are and type “./configure”
(include the dot and slash before the command!)
If all tests pass, you should see those three lines at the end of the output:
config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands
Type “make” to start the compile process.
When the program is readily compiled, it is time to install the binaries on your system.
For that gain root access (or use “sudo”) and type “make install“.
Running GoAccess
Once you are done installing you can start the program by typing in“goaccess” on the command prompt and pressing enter. If you don’t add
any command line options, GoAccess will print a few lines of help text.
GoAccess - 0.3.3 Usage: goaccess [ -b ][ -s ][ -e IP_ADDRESS][ -f log_file ] The following options can also be supplied to the command: -f - Path to input log -b - Enable total bandwidth consumption. To achieve faster parsing, do not enable this flag. -s - Enable/report HTTP status codes. To avoid overhead while parsing, this has been disabled by default. -e - Exclude an IP from being counted under the HOST module. This has been disabled by default. For more details visit: http://goaccess.prosoftcorp.com[/code]
If you want all the features you can start it with:goaccess -b -s -f /var/log/apache/access.log
Give it some time to parse the logfile (could take a very long time, depending on your logfile size), then you should see the mainscreen with live updating data and can start to use GoAccess.
原文链接:http://blog.no-panic.at/2010/11/09/goaccess-visual-apache-log-analyzer/
相关文章推荐
- ubuntu 安装apache日志分析软件awstats
- centos 安装日志分析软件goAccess
- Apache日志分析软件Goaccess
- [原创]如何在Windows下安装Jira问题跟踪及软件管理工具
- 如何把多个软件安装程序做成一个安装程序.
- 转载!!如何在debian下安装软件
- 如何做好项目软件的分析
- 如何在本地管理员电脑中限制安装软件
- Linux,UBUNTU.CENTOS服务器用户安装自己的软件如何配置环境
- Linux操作系统下如何编译安装源码包软件
- Linux系统中如何安装软件
- Android动态部署二:APK安装及AndroidManifest.xml解析流程分析
- 如何安装.tar.gz软件
- 站长经验:Apache日志分析工具Awstats的安装和配置
- fedora中如何卸载已安装的软件
- 如何查找rpm方式安装的软件路径
- 在linux系统中如何查看某个软件是否安装
- Linux如何用yum安装软件或服务
- Windows7任务栏如何删除安装软件时产生的多余图标
- 如何在Android模拟器上安装软件?