Product Features
Advanced Configuration
MQTT Logging Configuration
7 min
the mqtt broker exposes two parameters in values yaml to control log verbosity parameter type default description mqtt loglevel string info controls the log verbosity level mqtt mqttlogsdebug boolean false enables deep packet tracing set log levels to return the following info standard operational messages and high level events error only critical failures and error messages warn all warning and error messages debug all events and connection details deep packet tracing is intended for advanced troubleshooting that includes information on qos flows, subscription logic, and low level connection operations only enable this parameter for deep debugging as the system generates a high volume of log data set logging values in the following ways set values when you install edit the values yaml locally and install from the local helm chart apply changes to a running installation with helm upgrade set values at install time (oci registry) use set flags to override values at install time without pulling the helm chart to set the log level helm install uns oci //quay io/litmusautomation/charts/litmus uns \\ \ version=1 3 2 wait namespace uns \\ \ set "imagepullsecrets\[0] name=litmusautomation uns centralportal pull secret" \\ \ set "mqtt loglevel=debug" to enable deep packet tracing helm install uns oci //quay io/litmusautomation/charts/litmus uns \\ \ version=1 3 2 wait namespace uns \\ \ set "imagepullsecrets\[0] name=litmusautomation uns centralportal pull secret" \\ \ set "mqtt loglevel=debug" \\ \ set "mqtt mqttlogsdebug=true" edit values yaml in a local chart edit the values yaml locally and install from the local helm chart pull the helm chart helm pull oci //quay io/litmusautomation/charts/litmus uns version=1 3 2 untar edit the litmus uns/values yaml file locate the mqtt section and update loglevel and mqttlogsdebug values mqtt loglevel debug # options error, warn, info, debug mqttlogsdebug true # set to true only for deep troubleshooting install from the local chart helm install uns path/to/litmus uns wait namespace uns \\ \ set "imagepullsecrets\[0] name=litmusautomation uns centralportal pull secret" apply changes to a running installation use helm upgrade with the same flags to update an existing deployment with the following command helm upgrade uns oci //quay io/litmusautomation/charts/litmus uns \\ \ version=1 3 2 wait namespace uns \\ \ set "imagepullsecrets\[0] name=litmusautomation uns centralportal pull secret" \\ \ set "mqtt loglevel=debug" \\ \ set "mqtt mqttlogsdebug=true" alternatively, update with a local values yaml override file helm upgrade uns path/to/litmus uns wait namespace uns \\ \ values my overrides yaml reverting to defaults reset to production default settings when troubleshooting is complete helm upgrade uns oci //quay io/litmusautomation/charts/litmus uns \\ \ version=1 3 2 wait namespace uns \\ \ set "imagepullsecrets\[0] name=litmusautomation uns centralportal pull secret" \\ \ set "mqtt loglevel=info" \\ \ set "mqtt mqttlogsdebug=false"