Generate Static HTML Output from Apache Log File

Q

How to Generate Static HTML Output from an Apache Web server log file?

✍: FYIcenter.com

A

If you want to Generate Static HTML Output from an Apache Web server log file, you can follow these steps:

1. Copy a sample log file from the Apache Web server:

fyicenter$ sudo cp /var/log/httpd/access_log .

2. Generate an HTML report with default options:

fyicenter$ goaccess access_log -o report.html --log-format=COMBINED

 [PARSING access_log] {0} @ {0/s}
Cleaning up resources...

fyicenter$ ls -l 
-rw-r--r--. 1 root      root      233836 Dec  8 00:10 access_log
-rw-rw-r--. 1 fyicenter fyicenter 418353 Dec  8 00:25 report.html

3. View the HTML report with a Web browser. You see the full report with different statistical diagrams and tables:

GoAccess HTML Report
GoAccess HTML Report

 

Using GoAccess HTML Reports

View Report from Apache Log File

Installing for GoAccess

⇑⇑ GoAccess - Frequently Asked Questions

2023-02-28, 447🔥, 0💬