GoAccess – Visual Apache Log Analyzer
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
- 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.
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“.
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
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.
|Print article||This entry was posted by Florian Beer on 9. November, 2010 at 14:57, and is filed under Server. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.|
No trackbacks yet.
about 1 year ago - No comments
Find below my “.bash_profile” file in OS X Lion and the referenced “.bash_ps1″ (slightly modified from lifehacker). Detailed walkthrough add some additional directories to PATH reference .bash_ps1 (see the file below) set grep and ls to display some fancy colors two aliases to often used commands order top by CPU usage display more human readable…
about 1 year ago - 1 comment
This is kind of a stripped down version of Read It Later or Instapaper, but functions perfectly for my workflow. Requirements Apple Mail Apple Safari (with Reading List Support) ifttt Account First I’ve set up actions in ifttt that forward Links I favorite in Twitter or Google Reader, to my personal Email and prepend the subject…
about 1 year ago - No comments
With the introduction of Apple’s newest operating system OS X 10.7 Lion, the company has taken one step further to disconnect their users from other competing user interaction schemes. Let me elaborate on this rather strong statement by going back in history a bit. I can still remember, when I got my first Mac, it…
about 2 years ago - 4 comments
It’s time again to circumvent Apple’s Mail Plugin policy and update the GrowlMail Bundle with the correct identifier string. Otherwise, after updating, Mail will tell you it has disabled the GrowlMail plugin and will move the bundle to ~/Library/Mail/Bundles (disabled). To amend this, follow these steps: Quit Mail Move the GrowlMail.mailbundle Folder back into ~/Library/Mail/Bundles Enter the following…
about 2 years ago - 3 comments
For quite some time Mac users where searching for a way to paste the currently playing song from iTunes in chat messages etc. I never thought about it much but recently a friend of mine, who was a former AMIP user on Windows, needed a similar functionality under OS X. Together we constructed a working solution.…
about 2 years ago - 5 comments
One thing I always do first on any new Mac OS X System, is setting up the following preset in iTunes Equalizer. May it be on the iMac at the office, my Black MacBook at home or the trusted old iBook, I found that those always sound the nicest.
about 2 years ago - No comments
Google released an Apache module that auto tunes performance Google has announced that they are launching a module for the Apache HTTP server called mod_pagespeed, that will automatically tune several properties to optimize page load speed. I haven’t tried it out yet, but will definitely do so. Amongst other things, mod_pagespeed will: recompress images modify…
about 2 years ago - No comments
Today we’re somehow in between yesterdays geek fight between Apple and Google over the openess and/or integration of Apple’s iOS and Google’s Android mobile operating system and tonights Apple event. Developer Joe Hewitt, who for example built the great Firefox Extension Firebug and the first few versions of the great Facebook iPhone App, has now…
about 2 years ago - 1 comment
Why didn’t I find this sooner? To re-run the last command in terminal use !! which becomes _extremely_ useful, if you forgot you needed root access sudo !! (read: sudo damnit! )
about 3 years ago - No comments
I use the really great macFUSE to mount several server directories via SSH on my work computer. One programm that makes this process really easy is Macfusion which offers a menu item and a standalone application to configure your mountpoints and mount/unmount them. After upgrading to Snow Leopard recently Macfusion & macFUSE stopped working, so…