Hi, I know this issue has been posted here a few times, but I'm stuck trying to debug what's going on. I have set up elasticsearch with docker following (Install Elasticsearch with Docker | Elasticsearch Guide [8.4] | Elastic).
Looking at the elasticsearch.yml file inside docker shows that the network.host is set to 0.0.0.0.
I am able to connect to ES using local host.
curl --cacert http_ca.crt -u elastic https://localhost:9200
And I get
Enter host password for user 'elastic':
{
"name" : "1ed025f00dbc",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "Ize7Ge2nRau5jXRoCDniCQ",
"version" : {
"number" : "8.4.3",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "42f05b9372a9a4a470db3b52817899b99a76ee73",
"build_date" : "2022-10-04T07:17:24.662462378Z",
"build_snapshot" : false,
"lucene_version" : "9.3.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
Trying to connect to ES using the server IP from a different server fails.
curl --cacert http_ca.crt -u elastic https://X.XXX.XXX.XX:9200
Enter host password for user 'elastic':
curl: (7) Failed to connect to X.XXX.XXX.XX port 9200: Connection timed out
I've tried setting http.host to 0.0.0.0 and it doesn't work.
Here is the logs.
{"@timestamp":"2022-10-31T23:56:50.562Z", "log.level": "INFO", "message":"loaded module [search-business-rules]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.562Z", "log.level": "INFO", "message":"loaded module [searchable-snapshots]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.563Z", "log.level": "INFO", "message":"loaded module [snapshot-based-recoveries]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.564Z", "log.level": "INFO", "message":"loaded module [snapshot-repo-test-kit]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.571Z", "log.level": "INFO", "message":"loaded module [spatial]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.571Z", "log.level": "INFO", "message":"loaded module [transform]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.572Z", "log.level": "INFO", "message":"loaded module [transport-netty4]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.573Z", "log.level": "INFO", "message":"loaded module [unsigned-long]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.573Z", "log.level": "INFO", "message":"loaded module [vector-tile]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.574Z", "log.level": "INFO", "message":"loaded module [wildcard]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.574Z", "log.level": "INFO", "message":"loaded module [x-pack-aggregate-metric]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.575Z", "log.level": "INFO", "message":"loaded module [x-pack-analytics]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.576Z", "log.level": "INFO", "message":"loaded module [x-pack-async]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.576Z", "log.level": "INFO", "message":"loaded module [x-pack-async-search]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.577Z", "log.level": "INFO", "message":"loaded module [x-pack-autoscaling]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.577Z", "log.level": "INFO", "message":"loaded module [x-pack-ccr]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.578Z", "log.level": "INFO", "message":"loaded module [x-pack-core]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.579Z", "log.level": "INFO", "message":"loaded module [x-pack-deprecation]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.579Z", "log.level": "INFO", "message":"loaded module [x-pack-enrich]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.580Z", "log.level": "INFO", "message":"loaded module [x-pack-eql]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.580Z", "log.level": "INFO", "message":"loaded module [x-pack-fleet]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.581Z", "log.level": "INFO", "message":"loaded module [x-pack-graph]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.581Z", "log.level": "INFO", "message":"loaded module [x-pack-identity-provider]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.582Z", "log.level": "INFO", "message":"loaded module [x-pack-ilm]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.583Z", "log.level": "INFO", "message":"loaded module [x-pack-logstash]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.583Z", "log.level": "INFO", "message":"loaded module [x-pack-ml]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.584Z", "log.level": "INFO", "message":"loaded module [x-pack-monitoring]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.584Z", "log.level": "INFO", "message":"loaded module [x-pack-ql]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.585Z", "log.level": "INFO", "message":"loaded module [x-pack-rollup]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.585Z", "log.level": "INFO", "message":"loaded module [x-pack-security]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.586Z", "log.level": "INFO", "message":"loaded module [x-pack-shutdown]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.587Z", "log.level": "INFO", "message":"loaded module [x-pack-sql]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.589Z", "log.level": "INFO", "message":"loaded module [x-pack-stack]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.591Z", "log.level": "INFO", "message":"loaded module [x-pack-text-structure]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.591Z", "log.level": "INFO", "message":"loaded module [x-pack-voting-only-node]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.592Z", "log.level": "INFO", "message":"loaded module [x-pack-watcher]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:50.593Z", "log.level": "INFO", "message":"no plugins loaded", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.plugins.PluginsService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:56.654Z", "log.level": "INFO", "message":"using [1] data paths, mounts [[/ (overlay)]], net usable_space [208.1gb], net total_space [248gb], types [overlay]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.env.NodeEnvironment","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:56.660Z", "log.level": "INFO", "message":"heap size [3.8gb], compressed ordinary object pointers [true]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.env.NodeEnvironment","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:56:56.799Z", "log.level": "INFO", "message":"node name [1ed025f00dbc], node ID [-OJXwSi0TCCznO4aDu1KbQ], cluster name [docker-cluster], roles [transform, data_hot, ml, data_frozen, ingest, data_cold, data, remote_cluster_client, master, data_warm, data_content]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.node.Node","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:04.290Z", "log.level": "INFO", "message":"Security is enabled", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.xpack.security.Security","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:05.055Z", "log.level": "INFO", "message":"parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.xpack.security.authz.store.FileRolesStore","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:06.024Z", "log.level": "INFO", "message":"Auto-configuration will not generate a password for the elastic built-in superuser, as we cannot determine if there is a terminal attached to the elasticsearch process. You can use the `bin/elasticsearch-reset-password` tool to set the password for the elastic user.", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.xpack.security.InitialNodeSecurityAutoConfiguration","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:06.280Z", "log.level": "INFO", "message":"[controller/87] [Main.cc@123] controller (64 bit): Version 8.4.3 (Build 9c00cf51c9fea9) Copyright (c) 2022 Elasticsearch BV", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"ml-cpp-log-tail-thread","log.logger":"org.elasticsearch.xpack.ml.process.logging.CppLogMessageHandler","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:07.341Z", "log.level": "INFO", "message":"creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.transport.netty4.NettyAllocator","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:07.404Z", "log.level": "INFO", "message":"using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.indices.recovery.RecoverySettings","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:07.505Z", "log.level": "INFO", "message":"using discovery type [multi-node] and seed hosts providers [settings]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.discovery.DiscoveryModule","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:10.666Z", "log.level": "INFO", "message":"initialized", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.node.Node","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:10.676Z", "log.level": "INFO", "message":"starting ...", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.node.Node","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:10.707Z", "log.level": "INFO", "message":"persistent cache index loaded", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.xpack.searchablesnapshots.cache.full.PersistentCache","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:10.708Z", "log.level": "INFO", "message":"deprecation component started", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.xpack.deprecation.logging.DeprecationIndexingComponent","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:10.863Z", "log.level": "INFO", "message":"publish_address {172.18.0.2:9300}, bound_addresses {0.0.0.0:9300}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.transport.TransportService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:11.485Z", "log.level": "INFO", "message":"bound or publishing to a non-loopback address, enforcing bootstrap checks", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.BootstrapChecks","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:11.527Z", "log.level": "WARN", "message":"this node is locked into cluster UUID [Ize7Ge2nRau5jXRoCDniCQ] but [cluster.initial_master_nodes] is set to [1ed025f00dbc]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.cluster.coordination.ClusterBootstrapService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:11.763Z", "log.level": "INFO", "message":"elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {1ed025f00dbc}{-OJXwSi0TCCznO4aDu1KbQ}{9sVsGfBdQpSQCZZVaiMkgA}{1ed025f00dbc}{172.18.0.2}{172.18.0.2:9300}{cdfhilmrstw} completing election], term: 6, version: 64, delta: master node changed {previous [], current [{1ed025f00dbc}{-OJXwSi0TCCznO4aDu1KbQ}{9sVsGfBdQpSQCZZVaiMkgA}{1ed025f00dbc}{172.18.0.2}{172.18.0.2:9300}{cdfhilmrstw}]}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.service.MasterService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:11.875Z", "log.level": "INFO", "message":"master node changed {previous [], current [{1ed025f00dbc}{-OJXwSi0TCCznO4aDu1KbQ}{9sVsGfBdQpSQCZZVaiMkgA}{1ed025f00dbc}{172.18.0.2}{172.18.0.2:9300}{cdfhilmrstw}]}, term: 6, version: 64, reason: Publication{term=6, version=64}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][clusterApplierService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.service.ClusterApplierService","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:11.993Z", "log.level": "INFO", "message":"starting file settings watcher ...", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.reservedstate.service.FileSettingsService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.020Z", "log.level": "INFO", "message":"publish_address {172.18.0.2:9200}, bound_addresses {0.0.0.0:9200}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.http.AbstractHttpServerTransport","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.025Z", "log.level": "INFO", "message":"started {1ed025f00dbc}{-OJXwSi0TCCznO4aDu1KbQ}{9sVsGfBdQpSQCZZVaiMkgA}{1ed025f00dbc}{172.18.0.2}{172.18.0.2:9300}{cdfhilmrstw}{ml.machine_memory=8333045760, xpack.installed=true, ml.allocated_processors=2, ml.max_jvm_size=4169138176}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.node.Node","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.031Z", "log.level": "INFO", "message":"file settings service up and running [tid=46]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[file-settings-watcher]","log.logger":"org.elasticsearch.reservedstate.service.FileSettingsService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.292Z", "log.level": "INFO", "message":"license [38464391-2f38-4dab-803f-710d8403b522] mode [basic] - valid", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][clusterApplierService#updateTask][T#1]","log.logger":"org.elasticsearch.license.LicenseService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.293Z", "log.level": "INFO", "message":"license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][clusterApplierService#updateTask][T#1]","log.logger":"org.elasticsearch.xpack.security.authc.Realms","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.311Z", "log.level": "INFO", "message":"recovered [2] indices into cluster_state", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.gateway.GatewayService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:12.486Z", "log.level":"ERROR", "message":"exception during geoip databases update", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][generic][T#1]","log.logger":"org.elasticsearch.ingest.geoip.GeoIpDownloader","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster","error.type":"org.elasticsearch.ElasticsearchException","error.message":"not all primary shards of [.geoip_databases] index are active","error.stack_trace":"org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active\n\tat org.elasticsearch.ingest.geoip@8.4.3/org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134)\n\tat org.elasticsearch.ingest.geoip@8.4.3/org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274)\n\tat org.elasticsearch.ingest.geoip@8.4.3/org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102)\n\tat org.elasticsearch.ingest.geoip@8.4.3/org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48)\n\tat org.elasticsearch.server@8.4.3/org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42)\n\tat org.elasticsearch.server@8.4.3/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:769)\n\tat org.elasticsearch.server@8.4.3/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}
{"@timestamp":"2022-10-31T23:57:13.359Z", "log.level": "INFO", "current.health":"GREEN","message":"Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[.security-7][0]]]).","previous.health":"RED","reason":"shards started [[.security-7][0]]" , "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.routing.allocation.AllocationService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:13.953Z", "log.level": "INFO", "message":"successfully loaded geoip database file [GeoLite2-Country.mmdb]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][generic][T#4]","log.logger":"org.elasticsearch.ingest.geoip.DatabaseNodeService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:14.115Z", "log.level": "INFO", "message":"successfully loaded geoip database file [GeoLite2-ASN.mmdb]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][generic][T#1]","log.logger":"org.elasticsearch.ingest.geoip.DatabaseNodeService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
{"@timestamp":"2022-10-31T23:57:15.279Z", "log.level": "INFO", "message":"successfully loaded geoip database file [GeoLite2-City.mmdb]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[1ed025f00dbc][generic][T#2]","log.logger":"org.elasticsearch.ingest.geoip.DatabaseNodeService","elasticsearch.cluster.uuid":"Ize7Ge2nRau5jXRoCDniCQ","elasticsearch.node.id":"-OJXwSi0TCCznO4aDu1KbQ","elasticsearch.node.name":"1ed025f00dbc","elasticsearch.cluster.name":"docker-cluster"}
What am I missing here? Any help will be appreciated.
Thanks.