How to install Goaccess on Ubuntu 21.04
- 00:38 lsb_release -a
- 00:57 echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/goaccess.list
- 01:06 wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -
- 01:18 apt update
- 01:30 apt install goaccess
- 02:12 goaccess /var/log/apache2/access.log
To Install Goaccess on Ubuntu 21.04
Introduction:
GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in Unix like systems or through your browser. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.
Installation Procedure :
Step 1 : Check the OS version by using the below Command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
Step 2 : Add Goaccess Repository into the apt source list by using the below Command
root@linuxhelp:~# echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/goaccess.list
Step 3 : Add GPG key for Goaccess repository by using the below Command
root@linuxhelp:~# wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -
--2021-12-08 07:35:32-- https://deb.goaccess.io/gnugpg.key
Resolving deb.goaccess.io (deb.goaccess.io)... Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
67.205.130.138
Connecting to deb.goaccess.io (deb.goaccess.io)|67.205.130.138|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2468 (2.4K) [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[===============================================>] 2.41K --.-KB/s in 0s
2021-12-08 07:35:33 (129 MB/s) - written to stdout [2468/2468]
OK
Step 4 : Update the apt source list by using the below Command
root@linuxhelp:~# apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu hirsute InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu hirsute InRelease
Get:5 http://security.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages [445 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu hirsute-updates/main i386 Packages [215 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu hirsute-updates/main Translation-en [115 kB]
Step 5 : Install the Goaccess by using apt
root@linuxhelp:~# apt install goaccess
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libllvm11 linux-headers-5.11.0-16 linux-headers-5.11.0-16-generic linux-image-5.11.0-16-generic
linux-modules-5.11.0-16-generic linux-modules-extra-5.11.0-16-generic net-tools
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libncursesw5 libtinfo5
The following NEW packages will be installed:
goaccess libncursesw5 libtinfo5
0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
Need to get 579 kB of archives.
After this operation, 2,046 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu hirsute/universe amd64
Preparing to unpack .../goaccess_1%3a1.5.3-hirsute_amd64.deb ...
Unpacking goaccess (1:1.5.3-hirsute) ...
Setting up libtinfo5:amd64 (6.2+20201114-2build1) ...
Setting up libncursesw5:amd64 (6.2+20201114-2build1) ...
Setting up goaccess (1:1.5.3-hirsute) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Step 6 : Open the Browser and generate sample logs as shown in the below image
Step 7: Open Apache logs by Using Goaccess by using the below Command
root@linuxhelp:~# goaccess /var/log/apache2/access.log
Step 8: Select the Log Format as shown in the below image
Step 9: This is the Goaccess Log Page
By this how to install GoAccess on Ubuntu 21.04 has been completed.
Comments ( 0 )
No comments available