Last active
July 12, 2021 03:15
-
-
Save baakeydow/0adcb445c12a43f4622b8589b26007d3 to your computer and use it in GitHub Desktop.
Inspect Caddy logs with GoAccess
This file contains 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
#!/usr/bin/env bash | |
sudo goaccess /var/log/caddy/logs/access.log \ | |
--html-pref='{"theme":"darkBlue","perPage":50,"layout":"vertical","showTables":true,"visitors":{"plot":{"chartType":"area-spline"}}}' \ | |
-o /full/path/to/new/report.html \ | |
--with-mouse \ | |
--hl-header \ | |
--with-output-resolver \ | |
--ignore-crawlers \ | |
--all-static-files \ | |
--log-format=CADDY \ | |
--real-time-html \ | |
--sort-panel=VISITORS,BY_HITS,DESC \ | |
--sort-panel=REQUESTS,BY_VISITORS,DESC \ | |
--ssl-cert=/root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/api.example.com/api.example.com.crt \ | |
--ssl-key=/root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/api.example.com/api.example.com.key \ | |
--ws-url=wss://api.example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment