diff --git a/plugins/inputs/influxdb_listener/influxdb_listener.go b/plugins/inputs/influxdb_listener/influxdb_listener.go index 674433db9a38a..b6964ac7c8230 100644 --- a/plugins/inputs/influxdb_listener/influxdb_listener.go +++ b/plugins/inputs/influxdb_listener/influxdb_listener.go @@ -213,9 +213,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) } }