We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c5ffc commit b4913faCopy full SHA for b4913fa
zeek2es.py
@@ -442,7 +442,7 @@ def main(**args):
442
n = 0
443
444
# We do this one last time to get rid of any remaining lines.
445
- if n != 0:
+ if n != 0 and len(outstring) > 0:
446
sendbulk(args, outstring, es_index, filename)
447
else:
448
# This does everything the TSV version does, but for JSON
@@ -578,7 +578,7 @@ def main(**args):
578
579
580
# We send the last of the data to the ES server, if there is any left.
581
582
583
584
# This deals with running as a script vs. cython.
0 commit comments