Spread the love

What is GoAccess?

GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.

GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use your browser (great if you want to do a quick analysis of your access log via SSH, or if you simply love working in the terminal).

While the terminal output is the default output, it has the capability to generate a complete, self-contained real-time HTML report (great for analytics, monitoring and data visualization), as well as a JSON, and CSV report.

Key features:

You can check a demo from: Here

And here is the official web page: Here

How to install GoAccess?

# Install needed dependences in Ubuntu 21.04 Linux $ sudo apt install libncursesw5-dev libgeoip-dev libtokyocabinet-dev build-essential # Download and install in Ubuntu 21.04 Linux $ wget https://tar.goaccess.io/goaccess-1.4.6.tar.gz $ tar -xzvf goaccess-1.4.6.tar.gz $ cd goaccess-1.4.6/ $ ./configure --enable-utf8 --enable-geoip=mmdb $ make $ make install # Install GoAcess using apt in Ubuntu 21.04 Linux $ apt-get install goaccess # Install using the official goAccess repository $ echo "deb https://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list $ wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add - $ sudo apt-get update $ sudo apt-get install goaccess # Download and install in Fedora $ yum install goaccess # Download and install in Arch Linux $ pacman -S goaccess # Download and install in Gentoo $ emerge net-analyzer/goaccess # Download and install in FreeBSD $ pkg install sysutils/goaccess # Download and install in OpenBSD $ pkg_add goaccess # Download and install in OpenSUSE $ zypper ar -f obs://server:http http $ zypper in goaccess # Download and install in pkgsrc (NetBSD, Solaris, SmartOS, ...) $ pkgin install goaccess # Download and install in Slackware $ curl https://slackbuilds.org/slackbuilds/14.1/system/goaccess.tar.gz | tar xvz $ cd goaccess/ $ GEOIP=yes ./goaccess.SlackBuild # Build it from github $ git clone https://github.com/allinurl/goaccess.git $ cd goaccess $ autoreconf -fi $ ./configure --enable-utf8 --enable-geoip=mmdb $ make $ make install
Code language: PHP (php)

How to use GoAccess?

The usage is pretty easy we can use it in the terminal, to generate a static output or use it in real time.

# Terminal Output $ sudo goaccess /var/log/apache2/access.log -c # Static HTML Output $ sudo goaccess /var/log/apache2/access.log --log-format=COMBINED -a -o /home/latewebi/public_html/report.html # Real-Time HTML Output $ goaccess /var/log/apache2/access.log -o /var/www/html/report.html --log-format=COMBINED --real-time-html
Code language: PHP (php)

Are there any alternatives to goAccess?

The simple answer is Yes, there are many other alternatives to goAcces. Here is a little list to check out:

Conclusion

In this article we installed and reviewed goAcces web log analyzer. If you know other good log analyzers, please tell us in the comments bellow.

We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel or follow us on twiter.

Facebook Comments Box