# Facing issue in elastic search

**URL:** <https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [April 14, 2022, 7:55pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469 "2022-04-14T19:55:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hammadahmed](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hammadahmed](https://discuss.elastic.co/u/Hammadahmed)\
**Post date:** [April 14, 2022, 7:55pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469/1 "2022-04-14T19:55:19Z")

</div>

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](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](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](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](https://localhost)]  
Likely root cause: java.net.UnknownHostException: [https://localhost](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

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 14, 2022, 7:59pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469/2 "2022-04-14T19:59:40Z")

</div>

Look this message:

> [@Hammadahmed](#):
>
> Caused by: org.Elasticsearch.transport.BindTransportException: Failed to resolve host [[https://localhost](https://localhost)]

---

<div class="post-metadata">

**Author:** ![Hammadahmed](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hammadahmed](https://discuss.elastic.co/u/Hammadahmed)\
**Post date:** [April 14, 2022, 8:30pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469/3 "2022-04-14T20:30:27Z")

</div>

so what should i do now?

---

<div class="post-metadata">

**Author:** ![Hammadahmed](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hammadahmed](https://discuss.elastic.co/u/Hammadahmed)\
**Post date:** [April 14, 2022, 8:31pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469/4 "2022-04-14T20:31:23Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- 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](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 -------------------------

---

<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:** [May 12, 2022, 8:32pm UTC](https://discuss.elastic.co/t/facing-issue-in-elastic-search/302469/5 "2022-05-12T20:32:13Z")

</div>

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