diff --git a/plugins/outputs/groundwork/groundwork.go b/plugins/outputs/groundwork/groundwork.go index 28a62353d5ecf..12704fdf48c35 100644 --- a/plugins/outputs/groundwork/groundwork.go +++ b/plugins/outputs/groundwork/groundwork.go @@ -229,7 +229,13 @@ func (g *Groundwork) parseMetric(metric telegraf.Metric) (metricMeta, *transit.M status = value } - message, _ := metric.GetTag("message") + message := "" + if m, ok := metric.GetTag("message"); ok { + message = m + } + if m, ok := metric.GetField("message"); ok { + message = m.(string) + } unitType := string(transit.UnitCounter) if value, present := metric.GetTag("unitType"); present {