deductiv / export_everything

Export Everything Add-On for Splunk
Apache License 2.0
13 stars 6 forks source link

Search command is called without events in generator #9

Closed nts-jkaufmann closed 3 years ago

nts-jkaufmann commented 3 years ago

This PR fixes a bug in which the ep_hec search command gets called without any events in its' generator.

I did not find a valid solution to check if the generator is empty before trying to connect to the HEC. Stuff like len(list(events)) or sum(1 for _ in events) does not work.