-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filebeat] Add CSV decoder to httpjson input #28564
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
0130083
to
7b75aae
Compare
/test |
7b75aae
to
27bf53b
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, there are CI errors that look related to this PR. Did it work locally for you?
b72d832
to
3422605
Compare
Not related to code, but I'm wondering if we should rename the input since we aren't getting json back? It just seems odd to get CSV from Also I'm thinking it might be a good idea to switch to something like the |
The input will return json, but this adds the ability to convert a CSV response from an API to a list of JSON objects. In any case, I am fine with the eventual renaming (to
You mean something that lets us add extra configuration to the parser/decoder? Or directly using |
I like
I was thinking it would be nice to to use something like the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can worry about rename later.
3422605
to
8be04d7
Compare
* Add CSV decoder to httpjson input * Fix error check and test * Make allocated map to the size of the header
What does this PR do?
Adds a
text/csv
decoder to thehttpjson
input.Why is it important?
Some apis will only have the option to return csv content, which we want to convert to several events.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.