Home

Awesome

mqtt2elasticsearch

mqtt-smarthome NPM version Dependency Status Build Status XO code style License

Send MQTT messages to Elasticsearch

Install

$ sudo npm install -g mqtt2elasticsearch

Usage

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 '#'

License

MIT © Sebastian Raff