• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

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
{{postValue.id}}

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 Snap 1

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 Snap 2

Step 9: This is the Goaccess Log Page Snap 3

By this how to install GoAccess on Ubuntu 21.04 has been completed.

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What logs does GoAccess monitor?

A

GoAccess Monitor Apache web server logs in real-time.

Q

Where are Apache log files located?

A

Apache log files are located in "/var/log/apache2"

Q

How to open GoAccess?

A

To open GoAccess logs, type logfile followed by goaccess.

Q

What is the latest version of GoAccess?

A

The latest version of GoAccess is 1.5.2

Q

From what language is GoAccess written?

A

GoAccess is written in C.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.