Skip to content

Commit

Permalink
leftover bulk index
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrade committed Oct 11, 2020
1 parent e915151 commit 3ad9fca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nom.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def ingest_file(self,filename):
self.send_to_hec(events)
bulk = 0
events = []
if bulk != 0:
self.send_to_hec(events)
end = datetime.datetime.utcnow()
duration = end - start
print("Finished Processing {} in {} seconds. ingested {} out of {} events".format(filename,duration.seconds,done - errors, done))
Expand Down

0 comments on commit 3ad9fca

Please sign in to comment.