diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 32b0c9e73f5e..9ffd2b8c6808 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -53,6 +53,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff] - Fix wrong state ID in states registry for awss3 s3 direct input. {pull}32164[32164] - cisco/asa: fix handling of user names when there are Security Group Tags present. {issue}32009[32009] {pull}32196[32196] - Fix race conditions when reloading input V2 and filestream input {pull}32309[32309] +- Fix counter for number of events published in `httpjson` input. {pull}31993[31993] *Heartbeat* diff --git a/x-pack/filebeat/input/httpjson/request.go b/x-pack/filebeat/input/httpjson/request.go index a1f773f044aa..17bece981b7e 100644 --- a/x-pack/filebeat/input/httpjson/request.go +++ b/x-pack/filebeat/input/httpjson/request.go @@ -341,7 +341,7 @@ func (r *requester) doRequest(stdCtx context.Context, trCtx *transformContext, p } resps = intermediateResps } - n = r.processAndPublishEvents(stdCtx, trCtx, publisher, resps, i < len(r.requestFactories), i) + n += r.processAndPublishEvents(stdCtx, trCtx, publisher, resps, i < len(r.requestFactories), i) } }