Is it possible to log MQTT Broker Mosquitto events such as messages published to all channels, subscriptions, client connections/disconnections and errors to a log file with a time stamp and then have program insert this into a database either SQL in encrypted form?
If so, how could this be achieved?
What I have tried?
I have subscribed to the topic $SYS/broker/# ,able to get only connection logs,My query here is how can i get what message is sent and received from broker?
Reference Link : http://www.steves-internet-guide.com/mosquitto-logging/