goaccess command not found

In this troubleshooting guide we learn how to fix goaccess command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

goaccess: command not found

or when using sudo you get the following error message

sudo: goaccess: command not found

Solutions to goaccess: command not found

How To Fix goaccess: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu goaccess is provided by goaccess package.

goaccess is:

Displays fast and valuable HTTP statistics for system administrators that require a visual report on the fly.

The collected information will be displayed to the user (sysadmin) in a visual/interactive window. Collected information includes:

-General Statistics, Bandwidth etc. -Top Visitors -Requested files -Requested static files, images, swf, js, etc. -Referrers URLs -404 or Not Found -Operating Systems -Browsers and Spiders -Hosts, Reverse DNS, IP Location -HTTP Status Codes -Referring Sites -Unlimited log file size

GoAccess can parse both of Apaches’ log formats, the Common Log Format and the Combined Log Format

To fix this problem, we can install more using the command below.

sudo apt-get -y install goaccess

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install goaccess.

sudo apt -y install goaccess

Or if you have aptitude installed you can use the following command.

sudo aptitude install goaccess

Summary

In this tutorial we learn how to fix goaccess command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.