diff --git a/plugins/inputs/influxdb_listener/influxdb_listener.go b/plugins/inputs/influxdb_listener/influxdb_listener.go index ec19f10ce7090..571bea556f010 100644 --- a/plugins/inputs/influxdb_listener/influxdb_listener.go +++ b/plugins/inputs/influxdb_listener/influxdb_listener.go @@ -263,9 +263,9 @@ func (h *InfluxDBListener) handleWrite() http.HandlerFunc { return func(res http.ResponseWriter, req *http.Request) { if h.ParserType == "upstream" { h.handleWriteUpstreamParser(res, req) + } else { + h.handleWriteInternalParser(res, req) } - - h.handleWriteInternalParser(res, req) } }