Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Broker - Mosquitto Message Logging #1366

Open
kavidriod opened this issue Aug 2, 2019 · 1 comment
Open

MQTT Broker - Mosquitto Message Logging #1366

kavidriod opened this issue Aug 2, 2019 · 1 comment

Comments

@kavidriod
Copy link

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:https://www.steves-internet-guide.com/mosquitto-logging/

@john2exonets
Copy link

Add to your mosquitto.conf:

log_type payload

This will add the contents of the packet payload to the log file. Works for non-binary data....not sure what happens with binary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants