-
-
Save cceyda/606f83fcde8476306dabb709aa4c0310 to your computer and use it in GitHub Desktop.
Inspect Caddy logs with 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
#!/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