Skip to content

About

GeoMetrikks is a real-time nginx/traefik/caddy/pangolin/loki access log ingestion and geo-location tracking service built with Litestar. It parses access logs, performs GeoIP lookups, and stores geo-events and access logs in PostgreSQL with TimeScaleDB/PostGIS extensions. It can also integrate with CrowdSec.

Topics

Resources

Security policy

Stars

157 stars

Watchers

2 watching

Forks

Latest commit

 

History

1,818 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoMetrikks

GeoMetrikks tails your reverse-proxy access logs (nginx, Nginx Proxy Manager, Traefik and Caddy) or reads them from Grafana Loki, geolocates every request with MaxMind GeoLite2, and shows the result on a real-time map and a traffic analytics dashboard. It runs on your own hardware from one Docker image.

The map in live mode on a desktop browser, with arcs carrying incoming requests to the servers The map in live mode on a phone

Quickstart

You need Docker. The image is published to GHCR for amd64 and arm64.

mkdir geometrikks && cd geometrikks
curl -LO https://raw.githubusercontent.com/GilbN/geometrikks/main/docker-compose.yml
curl -Lo .env https://raw.githubusercontent.com/GilbN/geometrikks/main/.env.example
$EDITOR .env      # set APP_ADMIN_PASSWORD, MaxMind key, CARTO key, log path
docker compose up -d

Open http://localhost:8000 and log in with APP_ADMIN_USER / APP_ADMIN_PASSWORD. The Quickstart covers the GeoLite2 keys, log paths and image tags.

Integrations

  • Reverse proxies. Tails the access logs of nginx, Nginx Proxy Manager, Traefik (Pangolin included) and Caddy.
  • Grafana Loki. Reads proxy logs your Loki already collects, instead of or next to log files.
  • CrowdSec. Shows decisions and alerts from your Local API next to the traffic behind them, and bans or unbans an IP from the map, the tables or the IP inspector.
  • Spamhaus DROP. Marks traffic from networks on the DROP and ASN-DROP lists, ready to ban through CrowdSec.
  • AbuseIPDB. Shows an IP's abuse score in the IP inspector, marks IPs on AbuseIPDB's blacklist, and reports an IP to AbuseIPDB from its actions menu.
  • MaxMind GeoLite2. Places requests on the map and names the network each came from. With a free MaxMind key, the databases download and refresh on their own.
  • OpenID Connect. Single sign-on through Authelia, Authentik, Keycloak, Pocket ID, Google or another provider.
  • API keys. Read or read/write keys for scripts and dashboard widgets that call the REST API.
  • Abuse reports. Builds a report for a network's abuse desk and looks up the contact address over RDAP.

Documentation

The docs live at geometrikks.dev/docs. The configuration reference lists every setting with its default.

Project

About

GeoMetrikks is a real-time nginx/traefik/caddy/pangolin/loki access log ingestion and geo-location tracking service built with Litestar. It parses access logs, performs GeoIP lookups, and stores geo-events and access logs in PostgreSQL with TimeScaleDB/PostGIS extensions. It can also integrate with CrowdSec.

Topics

Resources

Security policy

Stars

157 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages