Skip to content

Logs Via MQTT

Calin Crisan edited this page Jul 11, 2021 · 3 revisions

About

Important log files are sent via MQTT so that they can be displayed in real-time to users.

The init script /etc/init.d/S89sendlogs follows configured log files and sends each new line to MQTT using mosquitto_pub.

Configuration

The MQTT connection is configured in /etc/mqtt-send.conf.

Log Files

Each log line is sent in one MQTT message.

Packet Forwarder

The log is sent to the following topic: units/$OS_PREFIX}/${RPI_SN}/logs/packet_forwarder.

Miner

The log is sent to the following topic: units/$OS_PREFIX}/${RPI_SN}/logs/miner.