Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
How GoAccess Real-Time Report Works
How does GoAccess Real-Time Report Work?
✍: FYIcenter.com
GoAccess Real-Time Report is designed to use a WebSocket server and
JavaScript client code to get updates from log files as
shown in the following diagram:
Here are the steps you should follow to set up GoAccess Real Time Report:
1. Check the Web server document directory:
fyicenter$ sudo ls -l /var/www/html/ -rw-r--r--. 1 root root 115 Sep 14 2022 index.html
2. Check the Web log file directory:
fyicenter$ sudo ls -l /var/log/httpd -rw-r--r--. 1 root root 233836 Dec 7 17:48 access_log
3. Run GoAccess as a WebSocket server on the Web server:
$ sudo goaccess /var/log/httpd/access_log -o /var/www/html/report.html --real-time-html --daemonize WebSocket server ready to accept new client connections
The above command will generate a report HTML document with JavaScript client code. It will also run as a background process to serve WebSocket client requests on port 7890.
4. Make sure that TCP port 7890 is open on the firewall:
$ udo firewall-cmd --zone=public --list-all ... ports: 587/tcp 8080/tcp 7890/tcp
5. On a remote client computer, run a Web browser with the following URL. You see a nice Web log report.
http://faq.fyicenter.com/report.html
6. Wait for a few minutes, refresh the browser. You see the Web log report updated.
Your GoAccess real-time report is running now.
⇒ Test GoAccess WebSocket Server
⇐ Running GoAccess Report in Real-Time Mode
2022-12-12, 910🔥, 0💬
Popular Posts:
What port numbers are used for data connections in passive mode in FileZilla Server? Can I limit the...
How to edit Mozilla Firefox configuration file? Mozilla Firefox has a configuration file that contro...
What are Mozilla Firefox 2 add-ons? Mozilla Firefox 2 add-ons extend the browser functionalities. So...
What is a PowerPoint Template (.potx) File? What is the difference between .potx and .pptx files? A ...
How to see the key exchange process in an SFTP connection with FileZilla FTP Client? If you are conn...