Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for json_batch codec as supported by HTTP-Output #110

Open
gaby opened this issue May 13, 2019 · 4 comments
Open

Support for json_batch codec as supported by HTTP-Output #110

gaby opened this issue May 13, 2019 · 4 comments

Comments

@gaby
Copy link

gaby commented May 13, 2019

Currently only the http-output plugin supports json_batch. It would make sense that http-input would do so too.

I'm currently sending a file with hundreds of jsons in it with no EOL, and logstash ignores the whole batch with 0 errors.

@buch11
Copy link

buch11 commented Jan 20, 2020

Is there any plans of rolling out way to handle a batch of json for http_input plugin any time soon?

@buch11
Copy link

buch11 commented Jan 30, 2020

I ended up using "json_lines" codec as my batch of jsons were /n delimited.

@chrissnell-okta
Copy link

chrissnell-okta commented Mar 15, 2021

Did anybody ever figure out a solution for this? I am trying json_lines as my codec and POST'ed a file with two JSON structs, \n delimited, and only the first one goes through:

{
 "event": {
   "test": "one"
  }
}
{
 "event": {
   "test": "two"
  }
}

@gaby
Copy link
Author

gaby commented Mar 16, 2021

@chrissnell-okta You need \n at the end of each structure, even the last one.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants