Kibana : Unable to connect to Elasticsearch

Kibana cant connect Elasticsearch

Kibana's error log

  log   [23:55:34.484] [info][plugins-service] Plugin "case" is disabled.
  log   [23:55:46.109] [info][plugins-system] Setting up [37] plugins: [siem,taskManager,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canvas,timelion,features,security,apm_oss,translations,reporting,share,uiActions,data,navigation,status_page,newsfeed,kibana_legacy,management,dev_tools,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,eui_utils,home,spaces,apm,cloud,graph,bfetch]
  log   [23:55:46.111] [info][plugins][siem] Setting up plugin
  log   [23:55:46.112] [info][plugins][taskManager] Setting up plugin
  log   [23:55:46.138] [info][licensing][plugins] Setting up plugin
  log   [23:55:46.143] [info][infra][plugins] Setting up plugin
  log   [23:55:46.144] [info][encryptedSavedObjects][plugins] Setting up plugin
  log   [23:55:46.145] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
  log   [23:55:46.153] [info][code][plugins] Setting up plugin
  log   [23:55:46.154] [info][plugins][usageCollection] Setting up plugin
  log   [23:55:46.157] [info][metrics][plugins] Setting up plugin
  log   [23:55:46.157] [info][canvas][plugins] Setting up plugin
  log   [23:55:46.165] [info][plugins][timelion] Setting up plugin
  log   [23:55:46.167] [info][features][plugins] Setting up plugin
  log   [23:55:46.168] [info][plugins][security] Setting up plugin
  log   [23:55:46.169] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [23:55:46.170] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [23:55:46.198] [info][apm_oss][plugins] Setting up plugin
  log   [23:55:46.198] [info][plugins][translations] Setting up plugin
  log   [23:55:46.199] [info][plugins][share] Setting up plugin
  log   [23:55:46.201] [info][data][plugins] Setting up plugin
  log   [23:55:46.209] [info][home][plugins] Setting up plugin
  log   [23:55:46.218] [info][plugins][spaces] Setting up plugin
  log   [23:55:46.224] [info][apm][plugins] Setting up plugin
  log   [23:55:46.231] [info][cloud][plugins] Setting up plugin
  log   [23:55:46.232] [info][graph][plugins] Setting up plugin
  log   [23:55:46.236] [info][bfetch][plugins] Setting up plugin
  log   [23:55:46.248] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
  log   [23:55:46.317] [info][savedobjects-service] Starting saved objects migrations
Could not create APM Agent configuration: Request Timeout after 30000ms
  log   [23:56:16.323] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms
  log   [00:15:13.879] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [master_not_discovered_exception] null

kibana.yml

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://127.0.0.1:9200"]

elasticsearch.yml

network.host: 0.0.0.0
discovery.seed_hosts: ["127.0.0.1:9200"]

I tryed connect elasticsearch with curl

$ curl -XGET 127.0.0.1:9200
{
  "name" : "elastic",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "7.6.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

I wonder why Kibana unable to connect to Elasticsearch.
Can you please help me?

This is not a Kibana problem, but an Elasticsearch problem. I changed the category of your post.

The error message gives it away: Unable to connect to Elasticsearch. Error: [master_not_discovered_exception] null .

Your Elasticsearch cluster is unable to elect a master. The problem is your discovery.seed_hosts setting. It should contain just the host without port information: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-settings.html

For your config you can omit it as it's the default value.

I tried to start elasticsearch after setting default value on discovery.seed_hosts.
But elasticsearch cant start with this error log.

[2020-09-08T13:28:20,099][INFO ][o.e.e.NodeEnvironment    ] [elastic] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [84.3gb], net total_space [97.9gb], types [ext4]
[2020-09-08T13:28:20,103][INFO ][o.e.e.NodeEnvironment    ] [elastic] heap size [1.9gb], compressed ordinary object pointers [true]
[2020-09-08T13:28:20,158][INFO ][o.e.n.Node               ] [elastic] node name [elastic], node ID [kHYiC-dMR7ex2l28C93k6w], cluster name [elasticsearch]
[2020-09-08T13:28:20,159][INFO ][o.e.n.Node               ] [elastic] version[7.6.2], pid[7419], build[default/tar/ef48eb35cf30adf4db14086e8aabd07ef6fb113f/2020-03-26T06:34:37.794943Z], OS[Linux/5.4.0-42-generic/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
[2020-09-08T13:28:20,160][INFO ][o.e.n.Node               ] [elastic] JVM home [/home/tk/elasticsearch-7.6.2/jdk]
[2020-09-08T13:28:20,161][INFO ][o.e.n.Node               ] [elastic] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=/tmp/elasticsearch-8128645966728068302, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=1073741824, -Des.path.home=/home/tk/elasticsearch-7.6.2, -Des.path.conf=/home/tk/elasticsearch-7.6.2/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2020-09-08T13:28:22,392][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [aggs-matrix-stats]
[2020-09-08T13:28:22,392][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [analysis-common]
[2020-09-08T13:28:22,393][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [flattened]
[2020-09-08T13:28:22,393][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [frozen-indices]
[2020-09-08T13:28:22,393][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [ingest-common]
[2020-09-08T13:28:22,394][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [ingest-geoip]
[2020-09-08T13:28:22,394][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [ingest-user-agent]
[2020-09-08T13:28:22,395][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [lang-expression]
[2020-09-08T13:28:22,395][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [lang-mustache]
[2020-09-08T13:28:22,396][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [lang-painless]
[2020-09-08T13:28:22,397][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [mapper-extras]
[2020-09-08T13:28:22,397][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [parent-join]
[2020-09-08T13:28:22,398][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [percolator]
[2020-09-08T13:28:22,398][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [rank-eval]
[2020-09-08T13:28:22,399][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [reindex]
[2020-09-08T13:28:22,399][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [repository-url]
[2020-09-08T13:28:22,400][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [search-business-rules]
[2020-09-08T13:28:22,400][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [spatial]
[2020-09-08T13:28:22,400][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [transform]
[2020-09-08T13:28:22,401][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [transport-netty4]
[2020-09-08T13:28:22,401][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [vectors]
[2020-09-08T13:28:22,402][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-analytics]
[2020-09-08T13:28:22,402][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-ccr]
[2020-09-08T13:28:22,403][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-core]
[2020-09-08T13:28:22,403][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-deprecation]
[2020-09-08T13:28:22,404][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-enrich]
[2020-09-08T13:28:22,404][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-graph]
[2020-09-08T13:28:22,405][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-ilm]
[2020-09-08T13:28:22,405][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-logstash]
[2020-09-08T13:28:22,406][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-ml]
[2020-09-08T13:28:22,406][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-monitoring]
[2020-09-08T13:28:22,406][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-rollup]
[2020-09-08T13:28:22,407][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-security]
[2020-09-08T13:28:22,407][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-sql]
[2020-09-08T13:28:22,407][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-voting-only-node]
[2020-09-08T13:28:22,408][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-watcher]
[2020-09-08T13:28:22,409][INFO ][o.e.p.PluginsService     ] [elastic] no plugins loaded
[2020-09-08T13:28:27,289][INFO ][o.e.x.s.a.s.FileRolesStore] [elastic] parsed [0] roles from file [/home/tk/elasticsearch-7.6.2/config/roles.yml]
[2020-09-08T13:28:28,023][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [elastic] [controller/7513] [Main.cc@110] controller (64 bit): Version 7.6.2 (Build e06ef9d86d5332) Copyright (c) 2020 Elasticsearch BV
[2020-09-08T13:28:28,715][DEBUG][o.e.a.ActionModule       ] [elastic] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2020-09-08T13:28:28,886][INFO ][o.e.d.DiscoveryModule    ] [elastic] using discovery type [zen] and seed hosts providers [settings]
[2020-09-08T13:28:29,862][INFO ][o.e.n.Node               ] [elastic] initialized
[2020-09-08T13:28:29,863][INFO ][o.e.n.Node               ] [elastic] starting ...
[2020-09-08T13:28:30,015][INFO ][o.e.t.TransportService   ] [elastic] publish_address {192.168.100.46:9300}, bound_addresses {[::]:9300}
[2020-09-08T13:28:30,260][INFO ][o.e.b.BootstrapChecks    ] [elastic] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-09-08T13:28:30,273][ERROR][o.e.b.Bootstrap          ] [elastic] node validation exception
[2] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2020-09-08T13:28:30,280][INFO ][o.e.n.Node               ] [elastic] stopping ...
[2020-09-08T13:28:30,321][INFO ][o.e.n.Node               ] [elastic] stopped
[2020-09-08T13:28:30,321][INFO ][o.e.n.Node               ] [elastic] closing ...
[2020-09-08T13:28:30,353][INFO ][o.e.n.Node               ] [elastic] closed
[2020-09-08T13:28:30,355][INFO ][o.e.x.m.p.NativeController] [elastic] Native controller process has stopped - no new native processes can be started

I changed elasticsearch.yml only this setting.

network.host: 0.0.0.0 

What wrong with my elasticsearch?

If you are trying to run Elasticsearch in production mode, you need the discovery.seed_hosts setting, but you should set it to 127.0.0.1 (without the port).

For the first error check out this link: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html

Thanks.

Elasticsearch is running with discovery.seed_hosts: ["127.0.0.1"]
But Kibana is still unabling to connect to Elasticsearch with this error.

$ ./bin/kibana -c ./config/kibana.yml
  log   [13:39:11.125] [info][plugins-service] Plugin "case" is disabled.
  log   [13:39:34.837] [info][plugins-system] Setting up [37] plugins: [taskManager,siem,infra,licensing,encryptedSavedObjects,code,usageCollection,metrics,canvas,timelion,features,security,apm_oss,translations,reporting,uiActions,data,navigation,status_page,share,newsfeed,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,kibana_legacy,management,dev_tools,home,spaces,cloud,apm,graph,eui_utils,bfetch]
  log   [13:39:34.839] [info][plugins][taskManager] Setting up plugin
  log   [13:39:34.885] [info][plugins][siem] Setting up plugin
  log   [13:39:34.886] [info][infra][plugins] Setting up plugin
  log   [13:39:34.887] [info][licensing][plugins] Setting up plugin
  log   [13:39:34.891] [info][encryptedSavedObjects][plugins] Setting up plugin
  log   [13:39:34.893] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
  log   [13:39:34.899] [info][code][plugins] Setting up plugin
  log   [13:39:34.901] [info][plugins][usageCollection] Setting up plugin
  log   [13:39:34.906] [info][metrics][plugins] Setting up plugin
  log   [13:39:34.907] [info][canvas][plugins] Setting up plugin
  log   [13:39:34.920] [info][plugins][timelion] Setting up plugin
  log   [13:39:34.923] [info][features][plugins] Setting up plugin
  log   [13:39:34.924] [info][plugins][security] Setting up plugin
  log   [13:39:34.926] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [13:39:34.926] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [13:39:34.948] [info][apm_oss][plugins] Setting up plugin
  log   [13:39:34.948] [info][plugins][translations] Setting up plugin
  log   [13:39:34.949] [info][data][plugins] Setting up plugin
  log   [13:39:34.955] [info][plugins][share] Setting up plugin
  log   [13:39:34.958] [info][home][plugins] Setting up plugin
  log   [13:39:34.966] [info][plugins][spaces] Setting up plugin
  log   [13:39:34.972] [info][cloud][plugins] Setting up plugin
  log   [13:39:34.973] [info][apm][plugins] Setting up plugin
  log   [13:39:34.979] [info][graph][plugins] Setting up plugin
  log   [13:39:34.985] [info][bfetch][plugins] Setting up plugin
  log   [13:39:34.995] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
  log   [13:39:35.059] [info][savedobjects-service] Starting saved objects migrations
Could not create APM Agent configuration: Request Timeout after 30000ms
  log   [13:40:05.064] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms
  log   [13:54:42.677] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [master_not_discovered_exception] null

What should I do ?

Your Elasticsearch is still not starting up correctly. Please check the Elasticsearch logs for the exact error message

I checked elasticsearch.log

[2020-09-08T23:37:07,096][INFO ][o.e.p.PluginsService     ] [elastic] loaded module [x-pack-watcher]
[2020-09-08T23:37:07,097][INFO ][o.e.p.PluginsService     ] [elastic] no plugins loaded
[2020-09-08T23:37:12,005][INFO ][o.e.x.s.a.s.FileRolesStore] [elastic] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2020-09-08T23:37:13,141][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [elastic] [controller/3884] [Main.cc@110] controller (64 bit): Version 7.6.2 (Build e06ef9d86d5332) Copyright (c) 2020 Elasticsearch BV
[2020-09-08T23:37:13,947][DEBUG][o.e.a.ActionModule       ] [elastic] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2020-09-08T23:37:14,126][INFO ][o.e.d.DiscoveryModule    ] [elastic] using discovery type [zen] and seed hosts providers [settings]
[2020-09-08T23:37:15,083][INFO ][o.e.n.Node               ] [elastic] initialized
[2020-09-08T23:37:15,084][INFO ][o.e.n.Node               ] [elastic] starting ...
[2020-09-08T23:37:15,228][INFO ][o.e.t.TransportService   ] [elastic] publish_address {192.168.100.46:9300}, bound_addresses {[::]:9300}
[2020-09-08T23:37:15,520][INFO ][o.e.b.BootstrapChecks    ] [elastic] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-09-08T23:37:25,534][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elastic] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300] from hosts providers and [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2020-09-08T23:37:35,536][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elastic] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300] from hosts providers and [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2020-09-08T23:37:45,538][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elastic] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300] from hosts providers and [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2020-09-08T23:37:45,575][WARN ][o.e.n.Node               ] [elastic] timed out while waiting for initial discovery state - timeout: 30s
[2020-09-08T23:37:45,582][INFO ][o.e.h.AbstractHttpServerTransport] [elastic] publish_address {192.168.100.46:9200}, bound_addresses {[::]:9200}
[2020-09-08T23:37:45,583][INFO ][o.e.n.Node               ] [elastic] started
[2020-09-08T23:37:55,540][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elastic] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300] from hosts providers and [{elastic}{tuaXKZzuQUeXEr8FmtEKkg}{wfu9PE7OQoGx8W9X6Db-EQ}{192.168.100.46}{192.168.100.46:9300}{dilm}{ml.machine_memory=6234619904, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

And I tryed starting Elasticsearch with cluster.initial_master_nodes: ["127.0.0.1"].
But Elasticsearch warned master not discovered yet

What should I try to change other settings?

cluster.initial_master_nodes don't take an ip, but a node name (set by node.name). Please try to solve the problems yourself first by doing basic research. This is the relevant documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-settings.html

1 Like

Thanks a lot.
My Elasticsearch and Kibana is working now.

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