GeoMetrikks tails your reverse proxy's access log, looks every request up in GeoLite2, and draws it on a world map within seconds. Traffic analytics, a searchable history, and CrowdSec bans next to the traffic that caused them. On your own hardware.
MIT licensed. One Docker image for amd64 and arm64. No telemetry.

Live map. Show requests as markers, clusters or a heatmap on a flat map or globe, over a street map or satellite imagery. Switch to the Banned IPs view to see where CrowdSec bans come from. Live routes end at the server location you configure.
Overview. Requests, visitors, bandwidth and errors for the chosen time period, compared with the previous period.
Analytics. Request volume, response codes, latency percentiles, bandwidth, top URLs by host, user agents and ASNs.
IP inspector. Select an address to see its network, request counts, bandwidth, response codes over time, hosts, paths, user agents and recent requests. Its CrowdSec decision, any Spamhaus DROP listing and its AbuseIPDB score sit at the top, and you can ban it or report it from there.
Search and commands. Press Ctrl+K on any page, or the search button on a phone. Type the first digits of an IP to find the addresses seen in all kept traffic, or a country, city, host or network name to filter a page by it. It also opens any page and runs actions such as a ban or the live tail.
Security. One tab each for CrowdSec decisions and alerts, the Spamhaus DROP networks in your traffic, and the reports you sent to AbuseIPDB. Decisions show each address's country and scenario, and with machine credentials the DROP tab bans a whole network.
Debug logs. Source lines that failed to parse, each with its parse error. Turn on debug capture and it keeps the lines that parsed too, linked to their requests.
GeoMetrikks is a progressive web app with a phone layout for every page. Serve it over HTTPS, add it to your home screen, and it opens like an installed app, without the browser's toolbar.
With CrowdSec
Connect the Local API and the map's Banned IPs view shows where the bans come from. Open any of them in the IP inspector to see what that address did to earn it.


# prints the API key
docker exec crowdsec cscli bouncers add geometrikks
CROWDSEC_LAPI_URL=http://crowdsec:8080
CROWDSEC_BOUNCER_API_KEY=<key>CrowdSec decides; a bouncer in front of your stack still does the blocking. GeoMetrikks shows and manages decisions, it does not block traffic. CrowdSec setup in the docsThe format is detected per file. Rotated files are followed. If a shipper already sends the lines to Loki, read them from there. Archives, plain or gzipped, can be backfilled through the same pipeline with one command.
geometrikks-jsonnginxcombinedlog_format geometrikks_json escape=json
'{'
'"client_ip":"$remote_addr",'
'"timestamp":"$time_iso8601",'
'"method":"$request_method",'
'"path":"$request_uri",'
'"protocol":"$server_protocol",'
'"status":"$status",'
'"bytes":"$body_bytes_sent",'
'"host":"$host",'
'"referrer":"$http_referer",'
'"user_agent":"$http_user_agent",'
'"remote_user":"$remote_user",'
'"request_time":"$request_time",'
'"upstream_time":"$upstream_response_time",'
'"request_raw":"$request"'
'}';
access_log /config/log/nginx/access.log geometrikks_json;ACCESS_LOG_DIR=/var/log/nginx LOGPARSER_LOG_PATHS=/var/log/access/access.log
geometrikks-jsonnpm# http_top.conf
log_format geometrikks_json escape=json
'{'
'"client_ip":"$remote_addr",'
'"timestamp":"$time_iso8601",'
'"method":"$request_method",'
'"path":"$request_uri",'
'"protocol":"$server_protocol",'
'"status":"$status",'
'"bytes":"$body_bytes_sent",'
'"host":"$host",'
'"referrer":"$http_referer",'
'"user_agent":"$http_user_agent",'
'"remote_user":"$remote_user",'
'"request_time":"$request_time",'
'"upstream_time":"$upstream_response_time",'
'"request_raw":"$request"'
'}';
# server_proxy.conf
access_log /data/logs/geometrikks_access.log geometrikks_json;ACCESS_LOG_DIR=/path/to/npm/data/logs LOGPARSER_LOG_PATHS=/var/log/access/geometrikks_access.log
traefik-jsonaccessLog:
filePath: "/var/log/traefik/access.log"
format: json
fields:
headers:
names:
User-Agent: keep
Referer: keepACCESS_LOG_DIR=/var/log/traefik LOGPARSER_LOG_PATHS=/var/log/access/access.log
caddy-json(log_settings) {
log {
output file /var/log/caddy/access.log
format json
level INFO
}
log_append upstream_duration_ms {rp.upstream.duration_ms}
}
app.example.com {
import log_settings
reverse_proxy app:8000
}ACCESS_LOG_DIR=/var/log/caddy LOGPARSER_LOG_PATHS=/var/log/access/access.log
geometrikks-jsonnginxtraefik-jsoncaddy-jsonloki.source.file "traefik" {
targets = [{
__path__ = "/var/log/traefik/access.log",
job = "traefik",
service_name = "traefik",
}]
tail_from_end = true
forward_to = [loki.write.local.receiver]
}
loki.write "local" {
endpoint {
url = "http://loki:3100/loki/api/v1/push"
}
}LOKI_URL=http://loki:3100
LOKI_QUERIES={job="traefik"}When traffic comes in through more than one proxy or host, run one full instance plus an agent next to each log file. An agent tails, parses, geolocates and writes to the shared database. The full instance does everything else.
The live map shows a request the moment any agent stores it. Each server gets its own beacon on the map, and Access Logs, Geo Logs and the map filter by server.
APP_MODE=agent DB_HOST=timescale.example.internal LOGPARSER_LOG_PATHS=/var/log/access/access.log LOGPARSER_SERVER_NAME=edge-01
You don't need agents if the logs already reach one machine. A single instance tails every shipped file, or reads each proxy from Loki.
Multi-source setup in the docsThe Compose file starts GeoMetrikks and TimescaleDB on amd64 or arm64. Set the log path and your keys, then open the app on port 8000.
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, DB_PASSWORD and the MaxMind and CARTO keys # add ACCESS_LOG_DIR, the folder your proxy writes its logs to docker compose up -d # open http://localhost:8000
No telemetry. On its own the server contacts MaxMind for GeoLite2, a public-IP service for the map's server location, GitHub for the update check and Spamhaus for the DROP lists. Each one can be turned off. Outbound traffic lists every request and its switch.
QuickstartGeoLite2 and the CARTO keyBehind a CDN or tunnelUpgrading