Artifact! Best Nginx Log Analysis tool Goaccess_nginx

Source: Internet
Author: User

There are two ways to use it, either with Xshell or Putty commands to view, or you can generate HTML reports.

The following is a description of how goaccess is installed on CentOS:

1. Need to install GeoIP, ncurses, Glib2, a sentence to fix

Copy Code code as follows:

#yum-y install glib2 glib2-devel ncurses ncurses-devel GeoIP geoip-devel

2. Download Goaccess Decompression Compile installation
Copy Code code as follows:

# wget http://downloads.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz
# tar ZXVF goaccess-0.5.tar.gz
# CD goaccess-0.5
#./configure--enable-geoip--enable-utf8
# Make && make install
# Make Clean

3. Okay, try the outfit.
Copy Code code as follows:

# goaccess

You see the following results, it means you're ready.
Copy Code code as follows:

GoAccess-0.5
usage:goaccess [-E ip_address][-A] [-C]<-F log_file >
The following options can also be supplied to the command:
-f-path to input log file.
-c-prompt log/date Configuration window.
-a-enable a List of user-agents by host.
For faster parsing, don ' t enable this flag.
-e-exclude an IP from being counted under the
HOST module. Disabled by default.
Examples can be found by running ' Mans goaccess '.
For more details visit:http://goaccess.prosoftcorp.com
Goaccess Copyright (C) 2009-2012 GNU GPL ' d, by Gerardo Orellana

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.