MQTT
Sends messages from a local network to an MQTT broker. For details on the available options of the output, see the documentation of the AxoSyslog syslog-ng distribution.
Overview
Prerequisites
Example
apiVersion: logging.banzaicloud.io/v1beta1
kind: SyslogNGOutput
metadata:
name: mqtt
namespace: default
spec:
mqtt:
address: tcp://mosquitto:1883
template: |
$(format-json --subkeys json~ --key-delimiter ~)
topic: test/demo
Configuration
MQTT
address (string, optional)
Address of the destination host
Default: -
topic (string, optional)
Topic defines in which topic syslog-ng stores the log message. You can also use templates here, and use, for example, the $HOST macro in the topic name hierarchy.
Default: -
fallback-topic (string, optional)
fallback-topic is used when syslog-ng cannot post a message to the originally defined topic (which can include invalid characters coming from templates).
Default: -
template (string, optional)
Template where you can configure the message template sent to the MQTT broker. By default, the template is: “$ISODATE $HOST $MSGHDR$MSG”
Default: -
qos (int, optional)
qos stands for quality of service and can take three values in the MQTT world. Its default value is 0, where there is no guarantee that the message is ever delivered.
Default: -