I got it to work! Here is the summary.
-
When running "elasticsearch.bat", no password or enrollment token is displayed. Below is how I regenerated them.
- While the script is running, open another command prompt. Run
.\bin\elasticsearch-reset-password -u elasticto reset and display the new password. Run.\bin\elasticsearch-create-enrollment-token -s kibanato display the enrollment token - Removing all files and unzipping the installer did not help
- While the script is running, open another command prompt. Run
-
When you see this error below, the Elasticsearch is probably running fine, and something is trying to connect to Elasticsearch using incorrect connection setting
caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53413}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca
By regenerating the password and enrollment token, I was able to set up Elasticsearch along with Kibana. It turned out that there was a software (my software of course) that was trying to talk to Elasticsearch with incorrect connection setting. After updating the connection setting, my software can now talk to Elasticsearch and see the log in Kibana.
Thank you so much for your help!