Send MQTT messages to Elasticsearch
$ sudo npm install -g mqtt2elasticsearch
Usage: mqtt2elasticsearch [options]
Options:
-e, --elastic-url elasticsearch url [default: "http://localhost:9200"]
-v, --verbosity possible values: "error", "warn", "info", "debug"
[default: "info"]
-n, --name instance name. used as connected topic and client id
prefix [default: "elasticsearch"]
-u, --url mqtt broker url. May contain user/password
[default: "mqtt://localhost"]
-m, --mqtt-smarthome parse mqtt-smarthome payloads [boolean]
-s, --subscribe mqtt topic to subscribe. may be repeated [required]
-h, --help Show help [boolean]
-k, --insecure allow tls connections with invalid certificates[boolean]
--version Show version number [boolean]
-i, --index [default: "mqtt"]
-t, --type [default: "mqtt"]
Example: $ mqtt2elasticsearch -s '#'
MIT © Sebastian Raff