Install GoAccess on Ubuntu 20.04 LTS - Step by step guide ?

GoAccess is a real-time web log analyzer and a visualizer for Both Linux and Unix operating systems. It functions as an interactive app from the Terminal, and after models also supplies an HTML report, which can be conveniently viewed in the browser.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Linux system log analyzing queries.

In this context, we shall look into how to install GoAccess on Ubuntu 20.04 LTS.

Steps to install GoAccess on Ubuntu 20.04 LTS Focal Fossa

1. Perform System Update

First, make sure that all your system packages are up-to-date by running these following apt commands in the terminal:

$ sudo apt update
$ sudo apt upgrade

2. Install GoAccess on the system

Now we add the official GoAccess repository to our repositories:

$ echo "deb $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list
$ wget -O - | sudo apt-key add -

Then, refresh the apt cache and install it:

$ sudo apt update
$ sudo apt install goaccess

How to use GoAccess on the system ?

The first thing you can do is check the help that the terminal gives us, for that you can run:

$ goaccess --help

For example, using the following command will create an analyzed HTML file from the Apache access log and place it in Apache's default document root:

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

Now you can open your browser, Enter your IP address or your Domain name and add "/report.html" in the end to see your HTML output in the GoAccess dashboard.

How to uninstall goaccess package from Ubuntu 20.04 Linux system ?

You can run the below commands to uninstall goaccess package:

$ sudo apt remove goaccess
$ sudo apt autoclean && sudo apt autoremove

[Need assistance in fixing Linux system packages issues ? We can help you. ]

This article covers the process of installing the GoAccess real-time web log analyzer on Ubuntu 20.04 LTS Focal Fossa system. In fact, GoAccess is a free and open-source weblog analyzer tool used for the analysis of logs in real-time. You can analyze logs through a web browser or terminal. 

GoAccess provides very useful statistics to system administrators including, top visitors, bandwidth, referring sites and URLs, operating systems, IP location, reverse DNS, geolocation, HTTP status code, and much more.

Related Posts