No skipping certificates validation when log forwarding in RHOCP 4

Solution Verified - Updated -

Issue

  • When defined tls.insecureSkipVerify: true to log forward skipping the validation of the certificates, it fails with the error:

    2023-03-14T13:50:39.948175007Z 2023-03-14 13:50:39 +0000 [warn]: [remote_elasticsearch] failed to flush the buffer. retry_times=37 next_retry_time=2023-03-14 13:51:34 +0000 chunk="5f6dadf25a0153c6bb1053cbbe0849c4" error_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=>\"x.x.x.x\", :port=>9200, :scheme=>\"https\", :user=>\"username\", :password=>\"obfuscated\"}): Peer certificate cannot be authenticated with given CA certificates"
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5.5
    • 5.6
    • 5.7
    • 5.8
  • Fluentd
  • Vector

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content