GoAccess Is a free open source console program for viewing and analyzing web server logs. Designed for Linux and macOS. On Windows, you can use its implementation CowAxessrunning via Cygwin or directly via WSL.
To analyze logs using GoAccess, you need them first download.
To run the program in interactive mode, do the following:
path/to/access.log
let the log file:goaccess path/to/access.log
If you need to analyze several logs at once, specify the paths to them separated by a space:
goaccess path/to/access.log path/to/access.log.1
The following modules are available in the program:
404
.To work with the program in interactive mode, use the following keys:
HTML- reports for the day or month can be generated directly in the control panel in access logs.
Instead of editing the configuration file, you can also explicitly specify the format directly in the command generatingby adding keys: --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u"' --date-format='%d/%b/%Y' --time-format='%T'
.
Before generating HTML-report, specify the format of the log, date and time in the GoAccess configuration file:
goaccess --dcf
nano way/to/configuration/file
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" date-format %d/%b/%Y time-format %T
To generate HTML-report run the command:
goaccess path/to/access.log -a -o path/to/report.html
path/to/access.log
substitute it for the log file.path/to/report.html
specify the name of the report and the path where you want to save it.Open the resulting file in any browser. The report will clearly reflect information on all available modules with the ability to customize the display.