From 9692e7e075ad85d7a57f4af76fff0bdf37dbec76 Mon Sep 17 00:00:00 2001 From: Rikaard Hosein Date: Tue, 20 Sep 2016 14:54:03 -0400 Subject: [PATCH] Code correctly handles colons in tag values now --- plugins/inputs/statsd/statsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/statsd/statsd.go b/plugins/inputs/statsd/statsd.go index 6e72e632f..555f6d45b 100644 --- a/plugins/inputs/statsd/statsd.go +++ b/plugins/inputs/statsd/statsd.go @@ -348,7 +348,7 @@ func (s *Statsd) parseStatsdLine(line string) error { tagstr := segment[1:] tags := strings.Split(tagstr, ",") for _, tag := range tags { - ts := strings.Split(tag, ":") + ts := strings.SplitN(tag, ":", 2) var k, v string switch len(ts) { case 1: