Hi everyone!
I'm new to Elasticsearch and still learning, so I’d really appreciate some guidance.
I’m trying to understand the best way to detect and handle transport errors when sending logs to Elasticsearch (using the latest versions). My current issue is that when my app sends logs to ELK and Elasticsearch is down, the write attempts cause my microservice to crash.
I’d like to implement a detection or fallback mechanism so that, if an error occurs during log transport, the logs are sent instead to the OpenShift console, where I already have Filebeat configured to enqueue them.
For context, I’m doing all of this from a pivot microservice using Winston.
What would you recommend as the most reliable and modern approach to handle this scenario?
Thanks a lot for your help and patience as I learn!