Web Log Analytics
This site and my other public sites do not use client-side analytics or tracking scripts. Instead, weblog-analysis reads Apache and nginx access logs from the shared host, stores the parsed data in SQLite, and serves a FastAPI dashboard.
Privacy by design
- The host already anonymizes client addresses before they are written. IPv4 is masked to a network and IPv6 is truncated to a prefix.
- A "visitor" therefore means a network, not a person. The UI states this openly.
- My own traffic is excluded by network and time interval, using the history from dyndns-updater.
Pipeline
- Fetch, a scheduled job pulls new log files over SFTP from the shared host.
- Ingest, lines are parsed, the vhost field is extracted, and records are written to SQLite.
- Retention, older raw data and database rows are pruned on a schedule.
- Dashboard, a FastAPI app serves the reports at an internal port behind the usual authentication layer.
What it shows
- Weekly requests and unique networks, split into human, bot and scanner traffic.
- Categories for search bots, AI bots, monitoring, scrapers, scanners and requests without a user agent.
- Per-vhost traffic, with aliases merged so
www.variants do not split the numbers. - Top bots, top paths, top networks with drill-down, status codes and referers.
- Filters for status class and time range, applied consistently across the Analyse tab.
Not a monitoring replacement
This tool answers "who reads the sites and what hits them", not "is the infrastructure healthy". Host, container and network metrics stay in Prometheus and Grafana. Keeping the two separate means log analysis can be noisy and exploratory without affecting alerting.
Deployment
It runs as a Docker container with a bind-mounted SQLite database and log directory. See the weblog-analysis repository for the SFTP settings and compose example.
Hostnames, credentials and real visitor networks are not published here.