I am writing end-to-end automation for a microservice that writes events to Splunk.
I use Java Splunk SDK version 220.127.116.11, which is the latest version stored on our artifactory
After I drop files in a particular folder on S3, our service calls various internal APIs and logs the status to Splunk.
After dropping the files, my automation needs to wait for a particular unique event to appear and then continues doing some internal validations.
I would like to be able to wait for a specific event to appear on Splunk, with a timeout of some number of seconds in case the event never happens. Currently I do this with a for loop and poll for the specified event to appear. However, I wonder if there might be a more efficient way to do this.