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:
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:
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:
[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 :
server.port: 5606
server.host: "myservername"
server.name: "myservername"
On the Elasticsearch side, when I go to this URL: http://myservername:9206
I get this:
{
"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 !