Beruflich Dokumente
Kultur Dokumente
Advertise Hire Us Submit Articles Archives Who We Are? Contact Us Privacy Policy Copyright Policy
Search
Home Linux Distros Open Source Web Servers Databases Linux Commands
TecMint.com is a community driven Linux website. Our motto is to provide an effortless howtos to our
valuable readers.
You are also welcome to join our community and can be part of our team, contributing and submitting well written article on Linux. If you have any query,
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/ 1/12
7/29/13
please contact us by email tecmint.com [at] gmail [dot] com or use our contact form.
GoAccess is an interactive and real time web server log analyzer program that quickly analyze and view web server logs. It comes as an open source and runs as a command line in Unix/Linux operating systems. It provides brief and beneficial HTTP (web server) statistics report for Linux administrators on the fly. It also take care of both the Apache and Ngnix web server log formats. GoAccess parses and analyze the given web server log formats such CLF (Common Log Format), W3C format (IIS) and Apache virtual hosts and then generate output of the data to the terminal. It includes the following features.
G e n e r a lS t a t i s t i c s ,b a n d w i d t he t c . T o pV i s i t o r s R e q u e s t e df i l e s R e q u e s t e ds t a t i cf i l e s ,i m a g e s ,s w f ,j s ,e t c . R e f e r r e r sU R L s 4 0 4o rN o tF o u n d O p e r a t i n gS y s t e m s B r o w s e r sa n dS p i d e r s H o s t s ,R e v e r s eD N S ,I PL o c a t i o n H T T PS t a t u sC o d e s R e f e r r i n gS i t e s K e y p h r a s e s S u p p o r tf o rI P v 6 D i f f e r e n tC o l o rS c h e m e s U n l i m i t e dl o gf i l es i z e C u s t o ml o gf o r m a t
7/29/13
#y u mi n s t a l ln c u r s e s d e v e lg l i b 2 d e v e lG e o I P * #c d/ u s r / s r c #w g e th t t p : / / s o u r c e f o r g e . n e t / p r o j e c t s / g o a c c e s s / f i l e s / 0 . 5 / g o a c c e s s 0 . 5 . t a r . g z / d o w n l o a d #t a rz x v fg o a c c e s s 0 . 5 . t a r . g z #c dg o a c c e s s 0 . 5 #. / c o n f i g u r e # m a k e ;m a k ei n s t a l l On Debian
GoAccess utility is available since Debian Squeeze 6. To install just run the following command on the terminal.
#a p t g e ti n s t a l lg o a c c e s s
For older Debian releases, you can be able to install it by adding a line to your /etc/apt/sources.list file as shown below.
#v i m/ e t c / a p t / s o u r c e s . l i s t #d e bh t t p : / / f t p . d e . d e b i a n . o r g / d e b i a ns i dm a i n #a p t g e tu p d a t e #a p t g e ti n s t a l lg o a c c e s s On Ubuntu
Since Ubuntu 11.04 it is available from the apt-get repositories. So, you can simple type the following command on the terminal to install it.
#a p t g e ti n s t a l lg o a c c e s s
For older Ubuntu releases, simple add the following line to your /etc/apt/sources.list file and then run the commands to install it as shown below.
#v i m/ e t c / a p t / s o u r c e s . l i s t #d e bh t t p : / / u b u n t u . m i r r o r . c a m b r i u m . n l / u b u n t u /n a t t ym a i nu n i v e r s e #a p t g e tu p d a t e #a p t g e ti n s t a l lg o a c c e s s
7/29/13
G o A c c e s s-0 . 5 U s a g e :g o a c c e s s[eI P _ A D D R E S S ] [-a] [-c] <fl o g _ f i l e> T h ef o l l o w i n go p t i o n sc a na l s ob es u p p l i e dt ot h ec o m m a n d : f< a r g u m e n t >-P a t ht oi n p u tl o gf i l e . c -P r o m p tl o g / d a t ec o n f i g u r a t i o nw i n d o w . a -E n a b l eaL i s to fU s e r A g e n t sb yh o s t . F o rf a s t e rp a r s i n g ,d o n ' te n a b l et h i sf l a g . e< a r g u m e n t >-E x c l u d ea nI Pf r o mb e i n gc o u n t e du n d e rt h e H O S Tm o d u l e .D i s a b l e db yd e f a u l t . E x a m p l e sc a nb ef o u n db yr u n n i n g` m a ng o a c c e s s ` . F o rm o r ed e t a i l sv i s i t :h t t p : / / g o a c c e s s . p r o s o f t c o r p . c o m G o A c c e s sC o p y r i g h t( C )2 0 0 9 2 0 1 2G N UG P L ' d ,b yG e r a r d oO r e l l a n a
The easiest way to get the any web server statistics use the flag f with input log file name as shown below. The below command will give you general statistics of your web server logs.
#g o a c c e s sf/ v a r / l o g / h t t p d / t e c m i n t . c o m #g o a c c e s sf/ v a r / l o g / n g i n x / t e c m i n t . c o m
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
4/12
7/29/13
GoAccess Web Log Analyzer For more information and usage please visit http://goaccess.prosoftcorp.com/.
Bio Latest Posts
Ravi Saive
Owner at TecM int.com
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
5/12
7/29/13
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.
Our post is simply DIY aka Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.
Tw eet
38
Like
3 comments Previous Post How to Install Varnish Cache (Web Accelerator) in RHEL/CentOS/Fedora and Ubuntu/Debian Next Post
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/ 6/12
7/29/13
Related Post(s):
1. 2. 3. 4. 5. 6. Mytop (MySQL Database Monitoring) in RHEL/CentOS 6.3/5.6 and Fedora 17/12 Install Apache CouchDB on RHEL/CentOS 6/5 13 Linux Network Configuration and Troubleshooting Commands Install Htop (Linux Process Monitoring) for RHEL, CentOS & Fedora Creating Your Own Webserver and Hosting A Website from Your Linux Box Real Time Interactive IP LAN Monitoring with IPTraf Tool
Unix Linux Web Server Awstats Apache
3 Responses
1.
nobicycle says: March 12, 2013 at 9:45 am Interesting, but the terminal I use captures F10, which prevents specifying the log format. Log format cannot be specified on the command line either. Reply
2.
James says: March 12, 2013 at 9:55 pm I had the same issue, however, I configured my log format/date in my: ~/.goaccessrc color_scheme 1 date_format %d/%b/%Y log_format %h %^[%d:%^] %^ %r %s %b %R %u
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
7/12
7/29/13
Reply 3. Lance says: July 15, 2013 at 9:11 am This is works awesome on my nginx server. Version 0.6 just came out which fixed the F10 key in gnome term. Reply
Leave a Reply
Name (Required) Mail (will not be published) (Required) Website
Submit Comment
Twitter 869 Twitter Facebook 11390 Facebook Google+ 281 Google+ RSS 1431 Subscribers
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/ 8/12
7/29/13
Install Apache, MySQL 5.5.32 & PHP 5.5.0 on RHEL/CentOS 6.4/5.9 & Fedora 19-1288 Comments
Install Cacti (Network Monitoring) on RHEL/CentOS 6.3/5.8 and Fedora 17-1288 Comments
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
9/12
7/29/13
Install Skype 4.1 in Ubuntu 12.10, Xubuntu 12.10 and Linux Mint 14/1343 Comments
Install Linux Malware Detect (LMD) in RHEL, CentOS and Fedora35 Comments
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
10/12
7/29/13
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
11/12
7/29/13
2013Tecmint: Linux Howtos, Tutorials & Guides.All rights reserved. Proudly designed by Tecmint.com.
www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/ 12/12