The access log plugin for the HiveMQ MQTT broker writes all relevant client actions to a file.