Facing issue in elastic search

bin/Elasticsearch
[2022-04-15T00:47:44,478][INFO ][o.e.n.Node ] [ubuntu] version[8.1.2], pid[11981], build[default/tar/31df9689e80bad366ac20176aa7f2371ea5eb4c1/2022-03-29T21:18:59.991429448Z], OS[Linux/5.13.0-39-generic/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.2/17.0.2+8]
[2022-04-15T00:47:44,488][INFO ][o.e.n.Node ] [ubuntu] JVM home [/home/hammadebryx/Downloads/Elasticsearch-8.1.2/jdk], using bundled JDK [true]
[2022-04-15T00:47:44,489][INFO ][o.e.n.Node ] [ubuntu] JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -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, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/Elasticsearch-11881305628893146765, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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, -Xms2899m, -Xmx2899m, -XX:MaxDirectMemorySize=1520435200, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/home/hammadebryx/Downloads/Elasticsearch-8.1.2, -Des.path.conf=/home/hammadebryx/Downloads/Elasticsearch-8.1.2/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2022-04-15T00:47:48,725][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [aggs-matrix-stats]
[2022-04-15T00:47:48,726][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [analysis-common]
[2022-04-15T00:47:48,726][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [constant-keyword]
[2022-04-15T00:47:48,727][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [data-streams]
[2022-04-15T00:47:48,727][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [frozen-indices]
[2022-04-15T00:47:48,728][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [ingest-common]
[2022-04-15T00:47:48,728][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [ingest-geoip]
[2022-04-15T00:47:48,728][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [ingest-user-agent]
[2022-04-15T00:47:48,729][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [kibana]
[2022-04-15T00:47:48,729][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [lang-expression]
[2022-04-15T00:47:48,730][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [lang-mustache]
[2022-04-15T00:47:48,731][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [lang-painless]
[2022-04-15T00:47:48,731][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [legacy-geo]
[2022-04-15T00:47:48,731][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [mapper-extras]
[2022-04-15T00:47:48,732][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [mapper-version]
[2022-04-15T00:47:48,741][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [old-lucene-versions]
[2022-04-15T00:47:48,741][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [parent-join]
[2022-04-15T00:47:48,742][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [percolator]
[2022-04-15T00:47:48,743][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [rank-eval]
[2022-04-15T00:47:48,746][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [reindex]
[2022-04-15T00:47:48,747][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repositories-metering-api]
[2022-04-15T00:47:48,747][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repository-azure]
[2022-04-15T00:47:48,747][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repository-encrypted]
[2022-04-15T00:47:48,748][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repository-gcs]
[2022-04-15T00:47:48,750][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repository-s3]
[2022-04-15T00:47:48,751][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [repository-url]
[2022-04-15T00:47:48,752][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [runtime-fields-common]
[2022-04-15T00:47:48,754][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [search-business-rules]
[2022-04-15T00:47:48,755][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [searchable-snapshots]
[2022-04-15T00:47:48,756][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [snapshot-based-recoveries]
[2022-04-15T00:47:48,760][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [snapshot-repo-test-kit]
[2022-04-15T00:47:48,762][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [spatial]
[2022-04-15T00:47:48,763][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [transform]
[2022-04-15T00:47:48,764][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [transport-netty4]
[2022-04-15T00:47:48,765][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [unsigned-long]
[2022-04-15T00:47:48,767][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [vector-tile]
[2022-04-15T00:47:48,774][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [vectors]
[2022-04-15T00:47:48,776][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [wildcard]
[2022-04-15T00:47:48,777][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-aggregate-metric]
[2022-04-15T00:47:48,777][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-analytics]
[2022-04-15T00:47:48,779][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-async]
[2022-04-15T00:47:48,780][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-async-search]
[2022-04-15T00:47:48,780][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-autoscaling]
[2022-04-15T00:47:48,780][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-ccr]
[2022-04-15T00:47:48,781][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-core]
[2022-04-15T00:47:48,781][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-deprecation]
[2022-04-15T00:47:48,781][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-enrich]
[2022-04-15T00:47:48,781][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-eql]
[2022-04-15T00:47:48,784][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-fleet]
[2022-04-15T00:47:48,784][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-graph]
[2022-04-15T00:47:48,784][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-identity-provider]
[2022-04-15T00:47:48,784][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-ilm]
[2022-04-15T00:47:48,784][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-logstash]
[2022-04-15T00:47:48,785][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-ml]
[2022-04-15T00:47:48,786][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-monitoring]
[2022-04-15T00:47:48,786][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-ql]
[2022-04-15T00:47:48,786][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-rollup]
[2022-04-15T00:47:48,786][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-security]
[2022-04-15T00:47:48,787][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-shutdown]
[2022-04-15T00:47:48,787][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-sql]
[2022-04-15T00:47:48,796][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-stack]
[2022-04-15T00:47:48,799][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-text-structure]
[2022-04-15T00:47:48,799][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-voting-only-node]
[2022-04-15T00:47:48,800][INFO ][o.e.p.PluginsService ] [ubuntu] loaded module [x-pack-watcher]
[2022-04-15T00:47:48,801][INFO ][o.e.p.PluginsService ] [ubuntu] no plugins loaded
[2022-04-15T00:47:48,947][INFO ][o.e.e.NodeEnvironment ] [ubuntu] using [1] data paths, mounts [[/ (/dev/sda5)]], net usable_space [4.8gb], net total_space [19gb], types [ext4]
[2022-04-15T00:47:48,949][INFO ][o.e.e.NodeEnvironment ] [ubuntu] heap size [2.8gb], compressed ordinary object pointers [true]
[2022-04-15T00:47:49,190][INFO ][o.e.n.Node ] [ubuntu] node name [ubuntu], node ID [U3aJ1t91RpC-IA8y1aPJJg], cluster name [Elasticsearch], roles [master, data_warm, data_content, transform, data_hot, ml, data_frozen, ingest, data_cold, data, remote_cluster_client]
[2022-04-15T00:47:58,422][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [ubuntu] [controller/12254] [Main.cc@123] controller (64 bit): Version 8.1.2 (Build aefa35c80ac77e) Copyright (c) 2022 Elasticsearch BV
[2022-04-15T00:47:58,673][INFO ][o.e.x.s.Security ] [ubuntu] Security is enabled
[2022-04-15T00:47:59,837][INFO ][o.e.x.s.a.Realms ] [ubuntu] license mode is [trial], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2022-04-15T00:47:59,859][INFO ][o.e.x.s.a.s.FileRolesStore] [ubuntu] parsed [0] roles from file [/home/hammadebryx/Downloads/Elasticsearch-8.1.2/config/roles.yml]

[2022-04-15T00:48:02,491][INFO ][o.e.t.n.NettyAllocator ] [ubuntu] 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}]
[2022-04-15T00:48:02,610][INFO ][o.e.i.r.RecoverySettings ] [ubuntu] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-04-15T00:48:02,698][INFO ][o.e.d.DiscoveryModule ] [ubuntu] using discovery type [multi-node] and seed hosts providers [settings]
[2022-04-15T00:48:04,890][INFO ][o.e.n.Node ] [ubuntu] initialized
[2022-04-15T00:48:04,891][INFO ][o.e.n.Node ] [ubuntu] starting ...
[2022-04-15T00:48:04,911][INFO ][o.e.x.s.c.f.PersistentCache] [ubuntu] persistent cache index loaded
[2022-04-15T00:48:04,912][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [ubuntu] deprecation component started
[2022-04-15T00:48:05,051][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [ubuntu] uncaught exception in thread [main]
org.Elasticsearch.bootstrap.StartupException: org.Elasticsearch.transport.BindTransportException: Failed to resolve host [https://localhost]
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[Elasticsearch-cli-8.1.2.jar:8.1.2]
at org.Elasticsearch.cli.Command.main(Command.java:77) ~[Elasticsearch-cli-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[Elasticsearch-8.1.2.jar:8.1.2]
Caused by: org.Elasticsearch.transport.BindTransportException: Failed to resolve host [https://localhost]
at org.Elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:437) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:147) ~[?:?]
at org.Elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:96) ~[?:?]
at org.Elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:59) ~[?:?]
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.transport.TransportService.doStart(TransportService.java:270) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.node.Node.start(Node.java:1134) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:272) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:367) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[Elasticsearch-8.1.2.jar:8.1.2]
... 6 more
Caused by: java.net.UnknownHostException: https://localhost: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[?:?]
at java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933) ~[?:?]
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519) ~[?:?]
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852) ~[?:?]
at java.net.InetAddress.getAllByName0(InetAddress.java:1509) ~[?:?]
at java.net.InetAddress.getAllByName(InetAddress.java:1367) ~[?:?]
at java.net.InetAddress.getAllByName(InetAddress.java:1301) ~[?:?]
at org.Elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:267) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:215) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.common.network.NetworkService.resolveBindHostAddresses(NetworkService.java:124) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:435) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:147) ~[?:?]
at org.Elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:96) ~[?:?]
at org.Elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:59) ~[?:?]
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.transport.TransportService.doStart(TransportService.java:270) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.node.Node.start(Node.java:1134) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:272) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:367) ~[Elasticsearch-8.1.2.jar:8.1.2]
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[Elasticsearch-8.1.2.jar:8.1.2]
... 6 more
uncaught exception in thread [main]
org.Elasticsearch.transport.BindTransportException: Failed to resolve host [https://localhost]
Likely root cause: java.net.UnknownHostException: https://localhost: Name or service not known
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)
at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)
at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301)
at org.Elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:267)
at org.Elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:215)
at org.Elasticsearch.common.network.NetworkService.resolveBindHostAddresses(NetworkService.java:124)
at org.Elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:435)
at org.Elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:147)
at org.Elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:96)
at org.Elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:59)
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48)
at org.Elasticsearch.transport.TransportService.doStart(TransportService.java:270)
at org.Elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:48)
at org.Elasticsearch.node.Node.start(Node.java:1134)
at org.Elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:272)
at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:367)
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
at org.Elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
at org.Elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81)
at org.Elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.Elasticsearch.cli.Command.main(Command.java:77)
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
For complete error details, refer to the log at /home/hammadebryx/Downloads/Elasticsearch-8.1.2/logs/Elasticsearch.log
[2022-04-15T00:48:05,972][INFO ][o.e.n.Node ] [ubuntu] stopping ...
[2022-04-15T00:48:06,063][INFO ][o.e.n.Node ] [ubuntu] stopped
[2022-04-15T00:48:06,065][INFO ][o.e.n.Node ] [ubuntu] closing ...
[2022-04-15T00:48:06,076][INFO ][o.e.n.Node ] [ubuntu] closed

Look this message:

so what should i do now?

here is my config file of Elasticsearch

======================== Elasticsearch Configuration =========================

NOTE: Elasticsearch comes with reasonable defaults for most settings.

Before you set out to tweak and tune the configuration, make sure you

understand what are you trying to accomplish and the consequences.

The primary way of configuring a node is via this file. This template lists

the most important settings you may want to configure for a production cluster.

Please consult the documentation for further information on configuration options:

Elasticsearch Guide | Elastic

---------------------------------- Cluster -----------------------------------

Use a descriptive name for your cluster:

#cluster.name: my-application

------------------------------------ Node ------------------------------------

Use a descriptive name for the node:

#node.name: node-1

Add custom attributes to the node:

#node.attr.rack: r1

----------------------------------- Paths ------------------------------------

Path to directory where to store the data (separate multiple locations by comma):

#path.data: /path/to/data

Path to log files:

#path.logs: /path/to/logs

----------------------------------- Memory -----------------------------------

Lock the memory on startup:

#bootstrap.memory_lock: true

Make sure that the heap size is set to about half the memory available

on the system and that the owner of the process is allowed to use this

limit.

Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------

By default Elasticsearch is only accessible on localhost. Set a different

address here to expose this node on the network:

network.host: https://localhost

By default Elasticsearch listens for HTTP traffic on the first free port it

finds starting at 9200. Set a specific HTTP port here:

http.port: 9200

For more information, consult the network module documentation.

--------------------------------- Discovery ----------------------------------

Pass an initial list of hosts to perform discovery when this node is started:

The default list of hosts is ["127.0.0.1", "[::1]"]

#discovery.seed_hosts: ["host1", "host2"]

Bootstrap the cluster using an initial set of master-eligible nodes:

#cluster.initial_master_nodes: ["node-1", "node-2"]

For more information, consult the discovery and cluster formation module documentation.

---------------------------------- Various -----------------------------------

Allow wildcard deletion of indices:

#action.destructive_requires_name: false

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------

The following settings, TLS certificates, and keys have been automatically

generated to configure Elasticsearch security features on 14-04-2022 01:01:20

--------------------------------------------------------------------------------

Enable security features

xpack.security.enabled: true

xpack.security.enrollment.enabled: true

Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents

xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12

Enable encryption and mutual authentication between cluster nodes

xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12

Create a new cluster with the current node only

Additional nodes can still join the cluster later

cluster.initial_master_nodes: ["ubuntu"]

#----------------------- END SECURITY AUTO CONFIGURATION -------------------------

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