I just closed the active cmd window and started the bat file as admin and made sure the localhost:9200 is working good and copied the log
[2023-01-04T15:14:33,076][INFO ][o.e.n.Node ] [-] version[7.17.0], pid[3960], build[default/zip/bee86328705acaa9a6daede7140defd4d9ec56bd/2022-01-28T08:36:04.875279988Z], OS[Windows 10/10.0/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.1/17.0.1+12]
[2023-01-04T15:14:33,083][INFO ][o.e.n.Node ] [-] JVM home [C:\M\xampp8.1\htdocs\elasticsearch-7.17.0\jdk], using bundled JDK [true]
[2023-01-04T15:14:33,084][INFO ][o.e.n.Node ] [-] 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, -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=C:\Users\USER\AppData\Local\Temp\elasticsearch, -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, -Xms16224m, -Xmx16224m, -XX:MaxDirectMemorySize=8506048512, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Delasticsearch, -Des.path.home=C:\M\xampp8.1\htdocs\elasticsearch-7.17.0, -Des.path.conf=C:\M\xampp8.1\htdocs\elasticsearch-7.17.0\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2023-01-04T15:14:45,204][INFO ][o.e.p.PluginsService ] [-] loaded module [aggs-matrix-stats]
[2023-01-04T15:14:45,205][INFO ][o.e.p.PluginsService ] [-] loaded module [analysis-common]
[2023-01-04T15:14:45,205][INFO ][o.e.p.PluginsService ] [-] loaded module [constant-keyword]
[2023-01-04T15:14:45,205][INFO ][o.e.p.PluginsService ] [-] loaded module [frozen-indices]
[2023-01-04T15:14:45,205][INFO ][o.e.p.PluginsService ] [-] loaded module [ingest-common]
[2023-01-04T15:14:45,206][INFO ][o.e.p.PluginsService ] [-] loaded module [ingest-geoip]
[2023-01-04T15:14:45,207][INFO ][o.e.p.PluginsService ] [-] loaded module [ingest-user-agent]
[2023-01-04T15:14:45,207][INFO ][o.e.p.PluginsService ] [-] loaded module [kibana]
[2023-01-04T15:14:45,207][INFO ][o.e.p.PluginsService ] [-] loaded module [lang-expression]
[2023-01-04T15:14:45,207][INFO ][o.e.p.PluginsService ] [-] loaded module [lang-mustache]
[2023-01-04T15:14:45,208][INFO ][o.e.p.PluginsService ] [-] loaded module [lang-painless]
[2023-01-04T15:14:45,208][INFO ][o.e.p.PluginsService ] [-] loaded module [legacy-geo]
[2023-01-04T15:14:45,208][INFO ][o.e.p.PluginsService ] [-] loaded module [mapper-extras]
[2023-01-04T15:14:45,208][INFO ][o.e.p.PluginsService ] [-] loaded module [mapper-version]
[2023-01-04T15:14:45,209][INFO ][o.e.p.PluginsService ] [-] loaded module [parent-join]
[2023-01-04T15:14:45,209][INFO ][o.e.p.PluginsService ] [-] loaded module [percolator]
[2023-01-04T15:14:45,209][INFO ][o.e.p.PluginsService ] [-] loaded module [rank-eval]
[2023-01-04T15:14:45,210][INFO ][o.e.p.PluginsService ] [-] loaded module [reindex]
[2023-01-04T15:14:45,210][INFO ][o.e.p.PluginsService ] [-] loaded module [repositories-metering-api]
[2023-01-04T15:14:45,210][INFO ][o.e.p.PluginsService ] [-] loaded module [repository-encrypted]
[2023-01-04T15:14:45,210][INFO ][o.e.p.PluginsService ] [-] loaded module [repository-url]
[2023-01-04T15:14:45,210][INFO ][o.e.p.PluginsService ] [-] loaded module [runtime-fields-common]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [search-business-rules]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [searchable-snapshots]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [snapshot-repo-test-kit]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [spatial]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [transform]
[2023-01-04T15:14:45,211][INFO ][o.e.p.PluginsService ] [-] loaded module [transport-netty4]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [unsigned-long]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [vector-tile]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [vectors]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [wildcard]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-aggregate-metric]
[2023-01-04T15:14:45,212][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-analytics]
[2023-01-04T15:14:45,213][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-async]
[2023-01-04T15:14:45,213][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-async-search]
[2023-01-04T15:14:45,213][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-autoscaling]
[2023-01-04T15:14:45,214][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-ccr]
[2023-01-04T15:14:45,214][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-core]
[2023-01-04T15:14:45,214][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-data-streams]
[2023-01-04T15:14:45,214][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-deprecation]
[2023-01-04T15:14:45,215][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-enrich]
[2023-01-04T15:14:45,215][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-eql]
[2023-01-04T15:14:45,215][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-fleet]
[2023-01-04T15:14:45,216][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-graph]
[2023-01-04T15:14:45,216][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-identity-provider]
[2023-01-04T15:14:45,217][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-ilm]
[2023-01-04T15:14:45,221][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-logstash]
[2023-01-04T15:14:45,223][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-ml]
[2023-01-04T15:14:45,223][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-monitoring]
[2023-01-04T15:14:45,223][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-ql]
[2023-01-04T15:14:45,224][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-rollup]
[2023-01-04T15:14:45,224][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-security]
[2023-01-04T15:14:45,224][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-shutdown]
[2023-01-04T15:14:45,225][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-sql]
[2023-01-04T15:14:45,225][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-stack]
[2023-01-04T15:14:45,225][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-text-structure]
[2023-01-04T15:14:45,226][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-voting-only-node]
[2023-01-04T15:14:45,226][INFO ][o.e.p.PluginsService ] [-] loaded module [x-pack-watcher]
[2023-01-04T15:14:45,227][INFO ][o.e.p.PluginsService ] [-] no plugins loaded
[2023-01-04T15:14:45,760][INFO ][o.e.e.NodeEnvironment ] [-] using [1] data paths, mounts [[Windows (C:)]], net usable_space [1.5tb], net total_space [1.8tb], types [NTFS]
[2023-01-04T15:14:45,761][INFO ][o.e.e.NodeEnvironment ] [-] heap size [15.8gb], compressed ordinary object pointers [true]
[2023-01-04T15:14:45,864][INFO ][o.e.n.Node ] [-] node name [-], node ID [9vMxUNvOQe6K-uF-beID0Q], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2023-01-04T15:14:50,250][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [-] [controller/39052] [Main.cc@122] controller (64 bit): Version 7.17.0 (Build 447aed7cba032c) Copyright (c) 2022 Elasticsearch BV
[2023-01-04T15:14:50,763][INFO ][o.e.x.s.a.s.FileRolesStore] [-] parsed [0] roles from file [C:\M\xampp8.1\htdocs\elasticsearch-7.17.0\config\roles.yml]
[2023-01-04T15:14:51,360][INFO ][o.e.i.g.ConfigDatabases ] [-] initialized default databases [[GeoLite2-Country.mmdb, GeoLite2-City.mmdb, GeoLite2-ASN.mmdb]], config databases [[]] and watching [C:\M\xampp8.1\htdocs\elasticsearch-7.17.0\config\ingest-geoip] for changes
[2023-01-04T15:14:51,362][INFO ][o.e.i.g.DatabaseNodeService] [-] initialized database registry, using geoip-databases directory [C:\Users\USER\AppData\Local\Temp\elasticsearch\geoip-databases\9vMxUNvOQe6K-uF-beID0Q]
[2023-01-04T15:14:52,172][INFO ][o.e.t.NettyAllocator ] [-] 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=8mb}]
[2023-01-04T15:14:52,254][INFO ][o.e.d.DiscoveryModule ] [-] using discovery type [zen] and seed hosts providers [settings]
[2023-01-04T15:14:52,728][INFO ][o.e.g.DanglingIndicesState] [-] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2023-01-04T15:14:53,217][INFO ][o.e.n.Node ] [-] initialized
[2023-01-04T15:14:53,218][INFO ][o.e.n.Node ] [-] starting ...
[2023-01-04T15:14:53,234][INFO ][o.e.x.s.c.f.PersistentCache] [-] persistent cache index loaded
[2023-01-04T15:14:53,235][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [-] deprecation component started
[2023-01-04T15:14:53,401][INFO ][o.e.t.TransportService ] [-] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2023-01-04T15:14:53,634][WARN ][o.e.b.BootstrapChecks ] [-] 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
[2023-01-04T15:14:53,646][INFO ][o.e.c.c.ClusterBootstrapService] [-] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2023-01-04T15:15:03,650][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:15:13,668][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:15:23,668][WARN ][o.e.n.Node ] [-] timed out while waiting for initial discovery state - timeout: 30s
[2023-01-04T15:15:23,684][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:15:23,703][INFO ][o.e.h.AbstractHttpServerTransport] [-] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2023-01-04T15:15:23,703][INFO ][o.e.n.Node ] [-] started
[2023-01-04T15:15:33,694][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:15:43,710][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:15:53,722][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:16:03,733][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:16:13,746][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:16:23,751][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
[2023-01-04T15:16:33,763][WARN ][o.e.c.c.ClusterFormationFailureHelper] [-] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{-}{9vMxUNvOQe6K-uF-beID0Q}{-DWd4ZeMTSCe4rybuLU0LA}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 2, last-accepted version 0 in term 0
Hope this is what you have asked.. Thank you.