Can I view Mosquitto verbose output when running from systemd?

I’d like to be able to view the real time activities happening on my Mosquitto MQTT broker which is running automatically via systemd. The only way I know to view the verbose output is to killall mosquitto and then start it again with “mosquitto -v”

Is there a way to view the output when it’s run from systemd?

you should be able to ‘subscribe’ to the MQTT feed using the mosquitto_sub command.

This should show you all the messages on the broker: - mosquitto_sub -v -t #

1 Like

Awesome thanks for the reply! This is great but needs a slight modification to work:

mosquitto_sub -v -t '#'

1 Like