From dbd1fe734ba9222999cac2ad3cab5baf4023e6f2 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 12 Apr 2022 07:54:35 -0600 Subject: [PATCH] fix: remove overly verbose info message from cisco mdt (#10959) --- plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }