Request for Retry Limit Feature in Logstash OpenSearch Output Plugin

Dear LogstashTeam,

I hope this message finds you well. I am currently using Logstash version 8.4.3 with OpenSearch and have come across a behavior in the OpenSearch output plugin that I believe could be improved for better error handling and system stability.

According to the documentation and source code, in scenarios where network reachability to OpenSearch is lost, the plugin attempts retries indefinitely. While I understand the intention behind ensuring data is not lost due to temporary network issues, this behavior presents a challenge during prolonged network outages or server issues. In such cases, the indefinite retries can lead to unnecessary resource consumption and potential system instability.

Would it be possible to introduce a configuration parameter that allows users to set a maximum number of retry attempts? This feature would provide better control over the plugin's behavior in error scenarios, allowing for a more predictable and manageable system behavior, especially in production environments.

Introducing such a parameter could allow users to balance between ensuring data delivery and managing system resources effectively, without manual intervention during extended periods of network unavailability.

I appreciate your consideration of this request and look forward to any guidance or updates you could provide on this matter.

Best regards,
nw-engineer

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

Opensearch has no relation with Elastic, this plugin is not built nor maintained by Elastic, you need to open this Feature Request on the Opensearch forum and Github.

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