Thea » Tips & Tricks

GoAccess log analysis

This command pipes all GET requests (the only method Thea supports) from your log file into GoAccess. The GoAccess UI will auto-update as new request come in.

1tail -f -n +0 /path/to/logfile | \
2 grep --line-buffered GET | \
3 goaccess --log-format='[%dT%tZ %^ %^] %h "%r" %s %b "%R" "%u" %T' \
4 --date-format='%Y-%m-%d' --time-format=%T --ignore-crawlers -

Custom 404 page

To set a custom 404 page, create a page (of any page type) and set the frontmatter slug to "/404" (example).

1---
2slug: "/404"
3---

[Back to docs]