# Kibana - elasticsearch connexion

**URL:** <https://discuss.elastic.co/t/kibana-elasticsearch-connexion/350698>\
**Category:** Kibana\
**Created:** [January 10, 2024, 7:24am UTC](https://discuss.elastic.co/t/kibana-elasticsearch-connexion/350698 "2024-01-10T07:24:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boubou](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@boubou](https://discuss.elastic.co/u/boubou)\
**Post date:** [January 10, 2024, 7:24am UTC](https://discuss.elastic.co/t/kibana-elasticsearch-connexion/350698/1 "2024-01-10T07:24:07Z")

</div>

Hello everyone,

I just installed Kibana and Elasticsearch on my server. I downloaded versions 8.2.0 in tar.gz on Linux.

To set up these two software, I modified two documents:

- elasticsearch.yml
- kibana.yml

Here is the content of these two files:

For elasticsearch.yml:

```auto
cluster.name: my-elasticsearch
node.name: node1
path.data: /db/myappli/data/elasticsearch
path.logs: /db/myappli/logs/elasticsearch
network.host: myservername
http.port: 9206
discovery.seed_hosts: ["myservername"]
cluster.initial_master_nodes: ["myservername"]
xpack.security.enabled: false

```

For kibana.yml:

```auto
server.port: 5606
server.host: "myservername"
server.name: "myservername"
elasticsearch.hosts: ["http://myservername:9206"]

```

It's not working, my Elasticsearch can be launched and starts, but my Kibana doesn't. The logs of Kibana say:

```auto
[2024-01-09T17:28:35.380+01:00][FATAL][root] TimeoutError: Request timed out
    at KibanaTransport.request (/db/myappli/bin/kibana-8.2.0/node_modules/@elastic/transport/lib/Transport.js:524:31)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at KibanaTransport.request (/db/myappli/bin/kibana-8.2.0/src/core/server/elasticsearch/client/create_transport.js:58:16)
    at Cluster.getSettings (/db/myappli/bin/kibana-8.2.0/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js:157:16)
    at isInlineScriptingEnabled (/db/myappli/bin/kibana-8.2.0/src/core/server/elasticsearch/is_scripting_enabled.js:22:20)
    at ElasticsearchService.start (/db/myappli/bin/kibana-8.2.0/src/core/server/elasticsearch/elasticsearch_service.js:121:32)
    at Server.start (/db/myappli/bin/kibana-8.2.0/src/core/server/server.js:326:32)
    at Root.start (/db/myappli/bin/kibana-8.2.0/src/core/server/root/index.js:69:14)
    at bootstrap (/db/myappli/bin/kibana-8.2.0/src/core/server/bootstrap.js:120:5)
    at Command.<anonymous> (/db/myappli/bin/kibana-8.2.0/src/cli/serve/serve.js:216:5)
[2024-01-09T17:28:46.786+01:00][INFO][plugins-system.preboot] Stopping all plugins.
[2024-01-09T17:28:46.787+01:00][INFO][plugins-system.standard] Stopping all plugins.
[2024-01-09T17:28:46.788+01:00][INFO][plugins.monitoring.monitoring.kibana-monitoring] Monitoring stats collection is stopped
[2024-01-09T17:29:16.795+01:00][WARN][plugins-system.standard] "eventLog" plugin didn't stop in 30sec., move on to the next.

 FATAL TimeoutError: Request timed out

```

By removing the connection to the Elasticsearch database in kibana.yml, Kibana launches and is OK. Like this :

kibana.yml :

```auto
server.port: 5606
server.host: "myservername"
server.name: "myservername"

```

On the Elasticsearch side, when I go to this URL: [http://myservername:9206](http://myservername:9206)

I get this:

```auto
{
  "name" : "myservername",
  "cluster_name" : "mes-elasticsearch-prod",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "8.2.0",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "b174af62e6dd9f4ac4d25875e9781ffe2b9482c5",
    "build_date" : "2022-04-20T10:35:10.180408517Z",
    "build_snapshot" : false,
    "lucene_version" : "9.1.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

Yes, it seems that your Elasticsearch is working properly and your Kibana is not able to connect to it.

Do you have any ideas for making it work?  
Please help me ! 😟

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [January 19, 2024, 10:36pm UTC](https://discuss.elastic.co/t/kibana-elasticsearch-connexion/350698/2 "2024-01-19T22:36:25Z")

</div>

1. If you have Kibana and Elasticsearch installed on the same host, you should use the loopback address
2. If Kibana is on a separate host, try connecting to Elasticsearch on that host using a network utility such as curl
3. If there is a proxy in between Kibana and Elasticsearch, check the proxy logs for errors

> By removing the connection to the Elasticsearch database in kibana.yml, Kibana launches and is OK.

Does "OK" mean there is a different symptom?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 16, 2024, 10:36pm UTC](https://discuss.elastic.co/t/kibana-elasticsearch-connexion/350698/3 "2024-02-16T22:36:33Z")

</div>

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