diff --git a/lib/nom.py b/lib/nom.py index 320a9a9..244ad40 100644 --- a/lib/nom.py +++ b/lib/nom.py @@ -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))