logstash-input-http
logstash-input-http copied to clipboard
Support for json_batch codec as supported by HTTP-Output
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.
Is there any plans of rolling out way to handle a batch of json for http_input plugin any time soon?
I ended up using "json_lines" codec as my batch of jsons were /n delimited.
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"
}
}
@chrissnell-okta You need \n
at the end of each structure, even the last one.