mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Quick fix to the ElasticSearch writer.
This commit is contained in:
parent
0f3ed1a553
commit
9d6c8769ea
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ bool ElasticSearch::DoWrite(int num_fields, const Field* const * fields,
|
||||||
|
|
||||||
json->Describe(&buffer, num_fields, fields, vals);
|
json->Describe(&buffer, num_fields, fields, vals);
|
||||||
|
|
||||||
|
buffer.AddRaw("\n", 1);
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
if ( counter >= BifConst::LogElasticSearch::max_batch_size ||
|
if ( counter >= BifConst::LogElasticSearch::max_batch_size ||
|
||||||
uint(buffer.Len()) >= BifConst::LogElasticSearch::max_byte_size )
|
uint(buffer.Len()) >= BifConst::LogElasticSearch::max_byte_size )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue