GoAccess (A Real-Time Apache and Nginx) Web Server Log Analyzer
External: http://goaccess.prosoftcorp.com/
http://www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
[root@astra ~]# yum install ncurses-devel glib2-devel GeoIP*
Loaded plugins: downloadonly, fastestmirror, priorities, security
Determining fastest mirrors
epel/metalink | 22 kB 00:00
* base: mirror.sov.uk.goscomb.net
* epel: www.mirrorservice.org
* extras: mirror.sov.uk.goscomb.net
* rpmforge: www.mirrorservice.org
* updates: mirror.sov.uk.goscomb.net
CentALT | 951 B 00:00
CentALT/primary | 87 kB 00:00
CentALT 269/269
base | 3.7 kB 00:00
epel | 4.2 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
longview | 2.9 kB 00:00
mariadb | 1.9 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.3 MB 00:00
1643 packages excluded due to repository priority protections
Setting up Install Process
Package ncurses-devel-5.7-3.20090208.el6.x86_64 already installed and latest version
Package glib2-devel-2.26.1-3.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package GeoIP.x86_64 0:1.4.8-1.el6 will be installed
---> Package GeoIP-devel.x86_64 0:1.4.8-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
GeoIP x86_64 1.4.8-1.el6 epel 620 k
GeoIP-devel x86_64 1.4.8-1.el6 epel 11 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 2 Package(s)
Total download size: 631 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): GeoIP-1.4.8-1.el6.x86_64.rpm | 620 kB 00:00
(2/2): GeoIP-devel-1.4.8-1.el6.x86_64.rpm | 11 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.4 MB/s | 631 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : GeoIP-1.4.8-1.el6.x86_64 1/2
Installing : GeoIP-devel-1.4.8-1.el6.x86_64 2/2
Verifying : GeoIP-devel-1.4.8-1.el6.x86_64 1/2
Verifying : GeoIP-1.4.8-1.el6.x86_64 2/2
Installed:
GeoIP.x86_64 0:1.4.8-1.el6 GeoIP-devel.x86_64 0:1.4.8-1.el6
Complete!
[root@astra ~]# cd /usr/src
[root@astra src]# wget http://sourceforge.net/projects/goaccess/files/0.5/goaccess-0.5.tar.gz/download
--2014-01-10 08:05:13-- http://sourceforge.net/projects/goaccess/files/0.5/goaccess-0.5.tar.gz/download
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz?r=&ts=1389341113&use_mirror=heanet [following]
--2014-01-10 08:05:13-- http://downloads.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz?r=&ts=1389341113&use_mirror=heanet
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://heanet.dl.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz [following]
--2014-01-10 08:05:13-- http://heanet.dl.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz
Resolving heanet.dl.sourceforge.net... 2001:770:18:aa40::c101:c142, 193.1.193.66
Connecting to heanet.dl.sourceforge.net|2001:770:18:aa40::c101:c142|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 129158 (126K) [application/x-gzip]
Saving to: “goaccess-0.5.tar.gzâ€
100%[===================================================================================================================================================================================================>] 129,158 --.-K/s in 0.07s
2014-01-10 08:05:13 (1.69 MB/s) - “goaccess-0.5.tar.gz†saved [129158/129158]
[root@astra src]# tar zxvf goaccess-0.5.tar.gz
goaccess-0.5/
goaccess-0.5/commons.h
goaccess-0.5/output.c
goaccess-0.5/commons.c
goaccess-0.5/goaccess.h
goaccess-0.5/error.c
goaccess-0.5/config.h.in
goaccess-0.5/aclocal.m4
goaccess-0.5/settings.h
goaccess-0.5/install-sh
goaccess-0.5/README
goaccess-0.5/parser.c
goaccess-0.5/Makefile.am
goaccess-0.5/util.h
goaccess-0.5/goaccess.1
goaccess-0.5/parser.h
goaccess-0.5/output.h
goaccess-0.5/depcomp
goaccess-0.5/settings.c
goaccess-0.5/ui.c
goaccess-0.5/Makefile.in
goaccess-0.5/error.h
goaccess-0.5/AUTHORS
goaccess-0.5/configure
goaccess-0.5/COPYING
goaccess-0.5/gmenu.c
goaccess-0.5/ui.h
goaccess-0.5/alloc.h
goaccess-0.5/missing
goaccess-0.5/gmenu.h
goaccess-0.5/NEWS
goaccess-0.5/configure.ac
goaccess-0.5/goaccess.c
goaccess-0.5/INSTALL
goaccess-0.5/ChangeLog
goaccess-0.5/util.c
goaccess-0.5/TODO
[root@astra src]# cd goaccess-0.5
[root@astra goaccess-0.5]# ./condifure
-bash: ./condifure: No such file or directory
[root@astra goaccess-0.5]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... ccache gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ccache gcc accepts -g... yes
checking for ccache gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of ccache gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB2... yes
checking for refresh in -lncurses... yes
checking for new_menu in -lmenu... yes
checking for g_free in -lglib-2.0... yes
checking how to run the C preprocessor... ccache gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for ptrdiff_t... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for floor... no
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for memset... yes
checking for setlocale... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[root@astra goaccess-0.5]# make; make install
make all-am
make[1]: Entering directory `/usr/src/goaccess-0.5'
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT output.o -MD -MP -MF .deps/output.Tpo -c -o output.o output.c
mv -f .deps/output.Tpo .deps/output.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT gmenu.o -MD -MP -MF .deps/gmenu.Tpo -c -o gmenu.o gmenu.c
mv -f .deps/gmenu.Tpo .deps/gmenu.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT settings.o -MD -MP -MF .deps/settings.Tpo -c -o settings.o settings.c
mv -f .deps/settings.Tpo .deps/settings.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT commons.o -MD -MP -MF .deps/commons.Tpo -c -o commons.o commons.c
mv -f .deps/commons.Tpo .deps/commons.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT goaccess.o -MD -MP -MF .deps/goaccess.Tpo -c -o goaccess.o goaccess.c
mv -f .deps/goaccess.Tpo .deps/goaccess.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT parser.o -MD -MP -MF .deps/parser.Tpo -c -o parser.o parser.c
mv -f .deps/parser.Tpo .deps/parser.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT ui.o -MD -MP -MF .deps/ui.Tpo -c -o ui.o ui.c
mv -f .deps/ui.Tpo .deps/ui.Po
ccache gcc -DHAVE_CONFIG_H -I. -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
ccache gcc -g -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lmenu -lncurses -o goaccess output.o gmenu.o settings.o error.o commons.o goaccess.o parser.o ui.o util.o -lm -lglib-2.0 -lmenu -lncurses
make[1]: Leaving directory `/usr/src/goaccess-0.5'
make[1]: Entering directory `/usr/src/goaccess-0.5'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'goaccess' '/usr/local/bin/goaccess'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 './goaccess.1' '/usr/local/share/man/man1/goaccess.1'
make[1]: Leaving directory `/usr/src/goaccess-0.5'
[root@astra goaccess-0.5]# goaccess
GoAccess - 0.5
Usage: goaccess [ -e IP_ADDRESS][ - a ][ - c ]< -f log_file >
The following options can also be supplied to the command:
-f <argument> - 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 <argument> - Exclude an IP from being counted under the
HOST module. Disabled by default.
Examples can be found by running `man goaccess`.
For more details visit: http://goaccess.prosoftcorp.com
GoAccess Copyright (C) 2009-2012 GNU GPL'd, by Gerardo Orellana
[root@astra goaccess-0.5]#
