Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vindolin/geolog2mqtt
https://github.com/vindolin/geolog2mqtt
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vindolin/geolog2mqtt
- Owner: vindolin
- License: mit
- Created: 2024-03-18T12:13:37.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T10:38:21.000Z (5 months ago)
- Last Synced: 2024-11-11T10:51:07.439Z (about 2 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### GeoLog2MQTT
Tail server log, get geocoordinates with Maxminds GeoLite2 database and publish results to a MQTT broker.
```
usage: run [-h|--help] -l|--log_file "" -g|--geodb_file ""
-m|--mqtt_server "" [-p|--mqtt_port ] [-u|--username
""] [-P|--password ""] [-t|--topic ""]
[-T|--throttle_duration ]Arguments:
-h --help Print help information
-l --log_file log file to tail
-g --geodb_file geolite db to use
-m --mqtt_server mqtt server to use
-p --mqtt_port mqtt port to use. Default: 1884
-u --username mqtt username to use
-P --password mqtt password to use
-t --topic mqtt topic to use. Default: location
-T --throttle_duration throttle in seconds. Default: 5
```Example without credentials:
go run . -l /var/log/nginx/mysite.log -g ~/tmp/GeoLite2-City.mmdb -m localhost