RunReveal

MQTT destination

The mqtt destination publishes events to an MQTT broker topic. Each event is published as a separate message.

Configuration

{
  "destinations": {
    "broker": {
      "type": "mqtt",
      "broker": "tcp://localhost:1883",
      "clientID": "reveald-publisher",
      "topic": "logs/production"
    }
  }
}

Options

OptionTypeDefaultDescription
brokerstringrequiredMQTT broker address (e.g. "tcp://host:1883", "ssl://host:8883")
clientIDstringrequiredClient identifier
topicstringrequiredTopic to publish to
userNamestring""Authentication username
passwordstring""Authentication password
qosint0Quality of Service level: 0, 1, or 2
retainedboolfalsePublish as retained messages

On this page