Skip to content

Instantly share code, notes, and snippets.

@dev-AshishRanjan
Created December 6, 2024 05:22
Show Gist options
  • Save dev-AshishRanjan/3a4cf75494fcaf1491419fbf8a6abe69 to your computer and use it in GitHub Desktop.
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
# update packages
sudo apt update
sudo apt upgrade
# install wget
sudo apt install goaccess
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
# 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