nginx-globe-gl

command module
v0.0.0-...-97c98b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

nginx-globe-gl

Globe.gl visualization for NGINX access logs

Requirements

Running locally

Run the following commands

cat <<EOF > .env
ELASTICSEARCH_HOST=<replace-host>
ELASTICSEARCH_USER=<replace-user>
ELASTICSEARCH_PASSWORD=<replace-password>
SELF_URL=http://localhost:9999
ELASTICSEARCH_QUERY={"size":1000,"query":{"match":{"kubernetes.labels.app_kubernetes_io/name":"ingress-nginx"}},"sort":[{"@timestamp":"desc"}]}
EOF

cat <<EOF > GeoIP.conf
AccountID <maxmind-acc-id>
LicenseKey <maxmind-license-key>
EditionIDs GeoLite2-City
EOF

geoipupdate -vf GeoIP.conf -d .

go run .

Access http://locahost:9999/ 🚀

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL