elastic / elastic/beats

[Beats] Enhancement to add support for string type of events.

Open
#34,734 5 comments 0 reactions 0 assignees View on GitHub
enhancement Team:Security-Service Integrations
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 2h
Merged PRs (30d)
364

Description

We are planning to create an integration for Bitwarden and using different APIs provided by Bitwarden. We have encountered with an endpoint where we are getting a response in below format:

```
[
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
```
When we configured same endpoint in Beats, we observed that in debug log we are getting below error message:

`events must be JSON objects, but got string: skipping`

We have also looked into [response.go](https://github.com/elastic/beats/blob/main/x-pack/filebeat/input/httpjson/response.go) file and observed that it is not able to convert input response to JSON object.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.