here I attached my log
sudo tail -f /var/log/elasticsearch/my-application.log
[2021-12-03T17:10:26,220][INFO ][o.e.x.w.WatcherService ] [node-1] stopping watch service, reason [shutdown initiated]
[2021-12-03T17:10:26,220][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node-1] [controller/3483460] [Main.cc@169] ML controller exiting
[2021-12-03T17:10:26,221][INFO ][o.e.x.m.p.NativeController] [node-1] Native controller process has stopped - no new native processes can be started
[2021-12-03T17:10:26,222][INFO ][o.e.x.w.WatcherLifeCycleService] [node-1] watcher has stopped and shutdown
[2021-12-03T17:10:26,444][INFO ][o.e.g.GatewayService ] [node-1] recovered [0] indices into cluster_state
[2021-12-03T17:10:26,994][INFO ][o.e.c.m.MetadataIndexTemplateService] [node-1] adding template [.ml-state] for index patterns [.ml-state*]
[2021-12-03T17:10:27,220][INFO ][o.e.n.Node ] [node-1] stopped
[2021-12-03T17:10:27,220][INFO ][o.e.n.Node ] [node-1] closing ...
[2021-12-03T17:10:27,234][WARN ][o.e.s.SystemdPlugin ] [node-1] sd_notify returned error [-13]
[2021-12-03T17:10:27,244][INFO ][o.e.n.Node ] [node-1] closed
[Kalinga@kalinga ~]$ sudo systemctl status Elasticsearch
- Elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/Elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-12-04 08:30:39 IST; 15s ago
Docs: https://www.elastic.co
Process: 3578506 ExecStart=/usr/share/Elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/Elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 3578506 (code=exited, status=1/FAILURE)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.cli.Command.main(Command.java:79)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
Dec 04 08:30:38 kalinga.coreservices01 systemd-entrypoint[3578506]: For complete error details, refer to the log at /var/log/Elasticsearch/my-application.log
Dec 04 08:30:39 kalinga.coreservices01 systemd[1]: Elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 04 08:30:39 kalinga.coreservices01 systemd[1]: Elasticsearch.service: Failed with result 'exit-code'.
Dec 04 08:30:39 kalinga.coreservices01 systemd[1]: Failed to startElasticsearch.
t[Kalinga@kalinga ~]$ grep -E -i 'erro|warn|fail|expir' /var/log/elasticsearch/my-application.log
[2021-12-04T08:30:12,521][INFO ][o.e.n.Node ] [node-1] JVM arguments [-Xshare:auto, -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, -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, -Djava.locale.providers=SPI,COMPAT, -Xms4g, -Xmx4g, -XX:+UseG1GC, -Djava.io.tmpdir=/var/log/elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=2147483648, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=rpm, -Des.bundled_jdk=true]
[2021-12-04T08:30:38,295][WARN ][o.e.d.SeedHostsResolver ] [node-1] failed to resolve host [host1]
[2021-12-04T08:30:38,305][WARN ][o.e.d.SeedHostsResolver ] [node-1] failed to resolve host [host2]
[2021-12-04T08:30:38,523][ERROR][o.e.b.Bootstrap ] [node-1] Exception
java.lang.RuntimeException: sd_notify returned error [-13]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) [elasticsearch-cli-7.11.2.jar:7.11.2]
[2021-12-04T08:30:38,525][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: sd_notify returned error [-13]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.11.2.jar:7.11.2]
Caused by: java.lang.RuntimeException: sd_notify returned error [-13]
[2021-12-04T08:30:39,224][WARN ][o.e.s.SystemdPlugin ] [node-1] sd_notify returned error [-13]
ype or paste code here
``