Httpjson crashes when receiving json array at the top level

I'm using your excellent https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-input-httpjson.html version 7.6.2

I'm calling this API:


filebeat.yml has no processors, and is supposed to dump the event into ES

The API returns a JSON response body of the form [{event1},{event1},{event1}]
Notice the array at the top level in this JSON response.

filebeats generates an ERROR with the message
ERROR [httpjson] httpjson/input.go:120 http.response.body is not valid JSON {"url": "https://sentry.io/api/0/OBSCURED"}

This could be a parsing error. Please advise if there is a workaround

An open API to reproduce this is: https://api.wheretheiss.at/v1/satellites

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.