Is there a way to have filebeat exit once it reaches end-of-file for all prospectors? The use case I'm trying to support is to launch filebeat with a known set of payloads, send to a test instance of logstash, and then compare the logstash results - an integration test for our logstash configuration.
I suppose I could spawn the filebeat process in the background and kill it once I see "no events to publish" in its output, but I was hoping for something a bit simpler & more robust.
Or, I'm open to suggestions on how else to automatically test our logstash configuration.
Thank you,
Erik Stephens