How To Install goaccess on AlmaLinux 8

In this tutorial we learn how to install goaccess in AlmaLinux 8. goaccess is Real-time web log analyzer and interactive viewer

Introduction

In this tutorial we learn how to install goaccess on AlmaLinux 8.

What is goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. Features GoAccess parses the specified web log file and outputs the data to terminal. * General statistics, bandwidth, etc. * Time taken to serve the request (useful to track pages that are slowing down your site). * Metrics for cumulative, average and slowest running requests. * Top visitors. * Requested files & static files. * 404 or Not Found. * Hosts, Reverse DNS, IP Location. * Operating Systems. * Browsers and Spiders. * Referring Sites & URLs. * Keyphrases. * Geo Location - Continent/Country/City. * Visitors Time Distribution. * HTTP Status Codes. * Ability to output JSON and CSV. * Tailor GoAccess to suit your own color taste/schemes. * Support for large datasets + data persistence. * Support for IPv6. * Output statistics to HTML. and more… GoAccess allows any custom log format string. Predefined options include, but not limited to * Amazon CloudFront (Download Distribution). * AWS Elastic Load Balancing. * Apache/Nginx Common/Combined + VHosts. * Google Cloud Storage. * W3C format (IIS).

We can use yum or dnf to install goaccess on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install goaccess.

Install goaccess on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install goaccess using dnf by running the following command:

sudo dnf -y install goaccess

Install goaccess on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install goaccess using yum by running the following command:

sudo yum -y install goaccess

How To Uninstall goaccess on AlmaLinux 8

To uninstall only the goaccess package we can use the following command:

sudo dnf remove goaccess

References

Summary

In this tutorial we learn how to install goaccess on AlmaLinux 8 using yum and dnf.