geolog

command module
v0.0.0-...-26b704e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

geolog - watches a web server log file and draw geolocation pings on a map in your browser

[!IMPORTANT] You have to sign up to get a Maxmind licence key for their free geoip service at: https://dev.maxmind.com/geoip before you can use this tool.

Run the Go program from it's github repository:

go run github.com/vindolin/geolog@latest -l /var/log/nginx/access.log -g /opt/GeoLite2-City.mmdb -d

Run the Go program from source:

go run . -l /var/log/nginx/access.log -g /opt/GeoLite2-City.mmdb -p 8080

Build the docker container:

docker build --build-arg ACCOUNT_ID=976666 --build-arg LICENSE_KEY=r872TfXFxdEJjBGgvkCVwU6zDY4Au3WMK5RqmNts -t vindolin/geolog .

... and run it:

in light mode
docker run --name geolog -it --rm -e LOG_FILE=/var/log/nginx/brummellock_access.log -v /var/log/nginx:/var/log/nginx:ro -p 8080:80 vindolin/geolog
in dark mode
docker run --name geolog -it --rm -e LOG_FILE=/var/log/nginx/brummellock_access.log -e DARK_MODE=true -v /var/log/nginx:/var/log/nginx:ro -p 8080:80 vindolin/geolog

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
⌂ 换网址