How To Install goaccess on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install goaccess on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install goaccess.

Install goaccess on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove goaccess

goaccess Package Contents on Rocky Linux 8

/etc/goaccess/browsers.list
/etc/goaccess/goaccess.conf
/etc/goaccess/podcast.list
/usr/bin/goaccess
/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/16309d0785c8f003aa759eefaeeacca1aa039d
/usr/share/licenses/goaccess
/usr/share/licenses/goaccess/COPYING
/usr/share/locale/de/LC_MESSAGES/goaccess.mo
/usr/share/locale/es/LC_MESSAGES/goaccess.mo
/usr/share/locale/fr/LC_MESSAGES/goaccess.mo
/usr/share/locale/ja/LC_MESSAGES/goaccess.mo
/usr/share/locale/pt_BR/LC_MESSAGES/goaccess.mo
/usr/share/locale/ru/LC_MESSAGES/goaccess.mo
/usr/share/locale/sv/LC_MESSAGES/goaccess.mo
/usr/share/locale/uk/LC_MESSAGES/goaccess.mo
/usr/share/locale/zh_CN/LC_MESSAGES/goaccess.mo
/usr/share/man/man1/goaccess.1.gz

References

Summary

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