Created
December 6, 2024 05:22
-
-
Save dev-AshishRanjan/3a4cf75494fcaf1491419fbf8a6abe69 to your computer and use it in GitHub Desktop.
GoAccess: GoAccess is a very small, open-source application that allows you to visualize your web server logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update packages | |
sudo apt update | |
sudo apt upgrade | |
# install wget | |
sudo apt install goaccess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/goaccess/goaccess.conf | |
# uncomment these lines of code in nano editor | |
time-format %H:%M:%S | |
date-format %d/%b/%Y | |
log-format %h %^[%d/%b/%Y:%H:%M:%S %z] "%r" %s %b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install nginx | |
sudo apt update | |
sudo apt install nginx | |
# live html for goaccess | |
# goaccess <path_to_log_file> -o <path_to_html_file_save_location> --real-time-html | |
goaccess /var/log/nginx/access.log -o /var/www/html/goaccess.html --real-time-html | |
# The dashboard is available at http://<vps_ip_address>/goaccess.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment