diff --git a/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go b/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go index 0de6ac328..0194fcb1b 100644 --- a/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go +++ b/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go @@ -356,8 +356,9 @@ func (c *CiscoTelemetryMDT) handleTelemetry(data []byte) { } } + // if the keys and content fields are missing, skip the message as it + // does not have parsable data used by Telegraf if keys == nil || content == nil { - c.Log.Infof("Message from %s missing keys or content", msg.GetNodeIdStr()) continue }