• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

How to Install GoAccess on Ubuntu 16.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
13
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Using a Different System?
  2. Prerequisites
  3. Step 1: Perform a system update
  4. Step 2: Install dependencies
  5. Step 3: Install GoAccess
  6. Step 4: Using GoAccess
  7. Want to contribute?

Using a Different System?

  • How to Install GoAccess on CentOS 7

Are we missing a guide for your target system? Request one, or submit your own!


GoAccess is an open source web log analyzer. You can use it for analysis of logs on a real-time basis in either the terminal or a web browser. It processes many types of web access logs. It allows you to generate reports in HTML, JSON, and CSV format.

In this tutorial, we will install the latest version of GoAccess on Ubuntu 16.04.

Prerequisites

  • A Vultr Ubuntu 16.04 server instance (64-bit).
  • A sudo user.

Step 1: Perform a system update

Before installing any packages on the Ubuntu server instance, it is recommended to update the system. Log in using the sudo user and run the following commands to update the system.

sudo apt-get update
sudo apt-get -y upgrade

Once the system has finished upgrading, proceed to the next step.

Step 2: Install dependencies

GoAccess is written in the C programming language. Hence, the only required dependency is the ncurses library and gcc. To install the ncurses and gcc, run:

sudo apt-get -y install libncursesw5-dev gcc make

Install the optional packages by typing:

sudo apt-get -y install libgeoip-dev libtokyocabinet-dev

Step 3: Install GoAccess

Download the GoAccess tarball by running:

wget http://tar.goaccess.io/goaccess-1.2.tar.gz

You can find the latest version of GoAccess on the official download page.

Extract the tarball.

tar -xzvf goaccess-1.2.tar.gz

Configure and install the package.

cd goaccess-1.2
sudo ./configure --enable-utf8 --enable-geoip=legacy
sudo make
sudo make install

Create a soft link of goaccess in the /usr/bin directory by running:

sudo ln -s /usr/local/bin/goaccess /usr/bin/goaccess

GoAccess is now installed on your server.

Step 4: Using GoAccess

GoAccess is a web log analyzer. If you do not have a web server running, install the Apache web server.

sudo apt-get -y install apache2

Start and enable the web server to run at boot time.

sudo systemctl start apache2
sudo systemctl enable apache2

Allow the required HTTP port through the system firewall.

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --reload

Now you can access the web server using http://Vultr_Server_IP. Upon accessing the web page, Apache will add some log entries in the default access_log file. The path to the log file on Ubuntu 16.04 is /var/log/apache2/access.log.

To analyze the log using GoAccess from a terminal, type:

sudo goaccess /var/log/apache2/access.log --log-format=COMBINED

The program will show you the generated report after analyzing the log file. An example report looks like the one shown below.

Dashboard - Overall Analyzed Requests (29/Jun/2017 - 29/Jun/2017)                               [Active Panel: Visitors]

  Total Requests  16 Unique Visitors  6  Unique Files 1 Referrers 0
  Valid Requests  16 Init. Proc. Time 0s Static Files 1 Log Size  3.44 KiB
  Failed Requests 0  Excl. IP Hits    0  Unique 404   2 Bandwidth 40.91 KiB
  Log Source      /var/log/apache2/access.log

 > 1 - Unique visitors per day - Including spiders                                                            Total: 1/1

 Hits      h% Vis.      v%   Bandwidth Data
 ---- ------- ---- ------- ----------- ----
 16   100.00%    6 100.00%   40.91 KiB 29/Jun/2017 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||







   2 - Requested Files (URLs)                                                                                 Total: 1/1

 Hits      h% Vis.      v%   Bandwidth Mtd Proto    Data
 ---- ------- ---- ------- ----------- --- -------- ----
 6    100.00%    5 100.00%   20.62 KiB GET HTTP/1.1 /







   3 - Static Requests                                                                                        Total: 1/1

 Hits      h% Vis.      v%   Bandwidth Mtd Proto    Data
 ---- ------- ---- ------- ----------- --- -------- ----
 [?] Help [Enter] Exp. Panel  0 - Thu Jun 29 11:29:56 2017                                           [Q]uit GoAccess 1.2

To generate an HTML report, type:

sudo goaccess /var/log/apache2/access.log --log-format=COMBINED -a -o /var/www/html/report.html

Open your web browser and navigate to the URL http://Vultr_Server_IP/report.html using your favorite web browser. The browser will show you many types of statistics using interactive graphs.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install Gitea on Fedora 29

Next Post

Install MediaWiki on the One-Click LEMP Application

Next Post

Install MediaWiki on the One-Click LEMP Application

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet