Service is getting stopped automatically

hi @Sandeep.K in system environment variable where u changed this JAVA_HOME and path of that java where that install that is C:\program file\java\jdk..... like this
if you change in system environment variable it should generate error so kindly check the system environment variable in this you have to give the path and set the variable in admin side its first box of environment variable screen is following here you have to change only in red box.
then restart the whole cluster or ELK stack and start the elasticsearch as a service.
Untitled
try it if any query is their ask.