Stats page: LLM's can rebuild me google analytics, but what I built instead


Part of the Website Changelog series

Notes on changes made to this website, big and small.

This is a project posting

Visit project →

You can build anything these days with LLM’s. I needed log analytics, my normal flow was SSH’ing into my box and running GoAccess. It would be nice to have a web page to take a look at it instead.

I’m not interested in building yet another simple analytics system, not interested in publishing on Github1. I just want something for myself. It needs to be done in 45 minutes.

Goals:

  • Go binary which reads in a config file, nginx access logs and poops out some html.
  • Not a background service but a timed systemd service with sqlite as persistence.
  • Retention is a future me problem, simple db size circuit break for that (I already have emails on systemd errors)
  • Follow the same design I have on my main site.
  • Ansible plumbing to set it up on my cloud2.

The Result:

It’s not much, but it get’s the job done.
Image 1: It’s not much, but it get’s the job done.

I’m quite happy with this, in addition I have a SQlite file, If I need to do any additional analysis.


  1. Source is open though, you can drop an email if interested. ↩︎

  2. Single smol VPS. ↩︎