Json_batch: I need set the buffer size and flush time


I'm trying to use json_batch in http output, how I can set the buffer size and time to flush?

My sample pipeline:

logstash -e 'input{stdin {}} filter{ mutate { add_field => { "level" => "info" "mrId" => "mrTest" "creationDate" => 0}}} output {http {format => "json_batch" http_method => "post" headers => ["api-key", "YWRtaW46cGFzc3dvcmQxMjM"] url => ""}}'

Thanks in advanced.

I am not certain, but if I understand output plugins correctly the http output will post the whole of a pipeline batch together in a single post. So you would control this with the standard pipeline.batch.delay and pipeline.batch.size options.

1 Like

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