How to set maximum retries on logstash output elastic plugin?

I am executing logstash from command prompt utility scheduled as windows service. my service triggers logstash execution every day once. I got a situation where if my elastic host is down (or) wrong elastic host configuration is provided. my logstash continues to retry with a infinite loop. Is there any setting that i can stop retrying after 3 attempts when "checking elastic health host" is failed.

Thank you in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.