Debian Apache log file analyser

Debian Apache log files contain tons of useful information about your web server and websites. Here I will show how to install GoAccess to help you get data and statistics on a lot of information. Here is what data you will easily visualize with GoAccess.

– Statistics and bandwidth usage

– Visitors data, top visitor, referring sites and links, 404

– Ip location, hosts, reverse DNS

– Operating systems and browser statistics

– Other Http status codes

– Geo Location

You can go to their website to check out more of this amazing Debian Apache log file tool.

How to Install GoAccess for Debian

GoAccess supports several Linux distributions, but I will only cover how to install it for Debian. By the way, it is the same installation for Ubuntu. GoAccess has been available since Debian 6 (Squeeze).

apt-get install goaccess

That will install the latest version of GoAccess made available to Debian package manager.

How to use GoAccess on Debian

Type the following and hit enter: goaccess

This will list all available parameters and arguments for GoAccess.

The argument we are interested in is -f. To specify the path to the log files. If we test it on this site, it would look something like this:

goaccess -f /var/www/

That will give us an output like on the screen print below.

How to create an HTML report.

To generate an HTML report of your Apache log files you just run it with an output to a file with an html extension. Like this:

goaccess -f /var/www/ > report.html

To view this exact files, just go to:

You might get a fatal error message where GoAccess complaints about missing time format. Just go to /etc/goaccess.conf and uncomment the time, the date and log format you want to use.

This will generate an HTML report like the one below. But you can have a look your self by clicking the report link above.

So this is how you install and some basic usage of GoAccess on a Debian system with Apache web server and Debian Apache log file analyzing.

Enjoy and happy Debian Apache log file analyzing!


Also, check out Apache – Disable directory browsing in Debian

Related Posts

OpenMediaVault default password

OpenMediaVault default password

OpenMediaVault default password is printed in the documentation. I did not see it the first time I installed it either. So I had to do some detective…

Debian change dns

Debian change DNS settings to a new DNS

Debian change DNS settings for speed improvement or privacy. It is really easy to do. So let us see how it’s done and get to it. The…

Upgrade debian 9 to debian 10

Upgrade Debian 9 to Debian 10

Upgrade Debian 9 to Debian 10 is very similar to upgrading previous versions. The only you need to do is change the sources to Buster instead of…

Debian 10 Static IP

Debian 10 Static IP

Debian 10 static IP works just like the previous version. They changed the naming of the network interfaces in Debian 9. However if you have upgraded from…

Install .net core on Debian 10

Install dotnet core on Debian 10

Install dotnet core on Debian 10 is essential to run dotnet core application on Debian. This time Microsoft has done it easy to install dotnet core 3…

How to check Debian version

How to check Debian version running on your system

How to check Debian version can be done in multiple ways. We will have a look at 5 different ways to check which version of Debian you…

Leave a Reply