Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.11 KB

cluster-logging-troubleshooting-unknown.adoc

File metadata and controls

40 lines (28 loc) · 1.11 KB

Troubleshooting a Kubernetes unknown error while connecting to Elasticsearch

If you are attempting to use a F-5 load balancer in front of Kibana with X-Forwarded-For enabled, this can cause an issue in which the Elasticsearch Searchguard plug-in is unable to correctly accept connections from Kibana.

Example Kibana Error Message
Kibana: Unknown error while connecting to Elasticsearch

Error: Unknown error while connecting to Elasticsearch
Error: UnknownHostException[No trusted proxies]
Procedure

To configure Searchguard to ignore the extra header:

  1. Scale down all Fluentd pods.

  2. Scale down Elasticsearch after the Fluentd pods have terminated.

  3. Add searchguard.http.xforwardedfor.header: DUMMY to the Elasticsearch configuration section.

    $ oc edit configmap/elasticsearch (1)
    1. This approach requires that Elasticsearch’s configurations are within a ConfigMap.

  4. Scale Elasticsearch back up.

  5. Scale up all Fluentd pods.