First and foremost you need to download GoAccess. There are several ways to download GoAccess. Choose one of the following options:
Once you have GoAccess installed on a machine, then you should be ready to start using it. However, first you need to determine the log format of your access log. GoAccess comes with several predefined log format options that you can use. Either you can set them permanently in your configuration file or simply passing it through the command line.
If you are unsure, please feel free to open a new issue on Github and post a few sample lines from your access log. If you have a custom log format, please take a look at the custom log format options.
At this point you are ready to run GoAccess against your access log(s). The following are the most basic and common scenarios.
The following prompts a log configuration dialog with predefined log formats for you to choose from and then displays the stats in real-time.
goaccess access.log -c
The following parses the access log and displays the stats in a static HTML report.
goaccess access.log -o report.html --log-format=COMBINED
--log-format
. You can also specify the log format in your configuration file as described in the actual config file.
The following parses the access log and displays the stats in a real-time HTML report.
goaccess access.log -o /var/www/html/report.html --log-format=COMBINED --real-time-html