Fluentd flush logs when Elasticsearch is not healthy overwhelming the logstore in Openshift 4
Issue
Fluentd
flushes logs overwhelmingElasticsearch
before it becomes healthy.-
Fluentd
not able to push logs toElasticsearch
for following error:$ oc logs fluentd-9jzkn -n openshift-logging -c fluentd |grep 2021-10-25T18:07 2021-10-25T18:07:33.023054138Z 2021-10-25 18:07:33 +0000 [warn]: dump an error event: error_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=>\"elasticsearch.openshift-logging.svc\", :port=>9200, :scheme=>\"https\"}): Failure when receiving data from the peer"
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.