Software engineer with a love for rock climbing. With a strong background in developer advocacy, I love creating tutorials & educational meetups to help developers get unstuck!
Location
Denver, Colorado
Work
Staff Developer Advocate @ Grafana | Full Stack Developer
Thank you so much for the wonderful comment and for reaching out.
This blog has some outdated information that I need to update!
This blog was created for version 7 of Elasticsearch.
"curl: (52) Empty reply from server" is a common error message you would encounter when you follow these directions with version 8+ of Elasticsearch.
With version 8, security is on by default. Therefore, the procedure for connecting to Elasticsearch has changed!
Let me walk you through this process.
When you run Elasticsearch by running "elasticsearch.bat", you will find the Elasticsearch log populating in your terminal as shown below.
When you scroll down or use "ctrl+f" to find the term password, you will see this page here that shows the password for the elastic user.
Copy the generated password and enrollment token and save them in a secure location. These values are shown only when you start Elasticsearch for the first time.
In a separate tab of your terminal, run curl -k -u elastic localhost:9200
It will prompt you to enter host password.
Paste the password and press enter.
When you see the following cluster information, it means that you are securely connected to Elasticsearch!
Then you will enroll Kibana with security enabled with the enrollment token you have saved from the previous step.
Hey @hajara!
Thank you so much for the wonderful comment and for reaching out.
This blog has some outdated information that I need to update!
This blog was created for version 7 of Elasticsearch.
"curl: (52) Empty reply from server" is a common error message you would encounter when you follow these directions with version 8+ of Elasticsearch.
With version 8, security is on by default. Therefore, the procedure for connecting to Elasticsearch has changed!
Let me walk you through this process.
When you run Elasticsearch by running "elasticsearch.bat", you will find the Elasticsearch log populating in your terminal as shown below.
When you scroll down or use "ctrl+f" to find the term password, you will see this page here that shows the password for the elastic user.
Copy the generated password and enrollment token and save them in a secure location. These values are shown only when you start Elasticsearch for the first time.
In a separate tab of your terminal, run curl -k -u elastic localhost:9200
It will prompt you to enter host password.
Paste the password and press enter.
When you see the following cluster information, it means that you are securely connected to Elasticsearch!
Then you will enroll Kibana with security enabled with the enrollment token you have saved from the previous step.
The steps on how to do that is shown here:
elastic.co/guide/en/elasticsearch/...
Scroll down to "Start Elasticsearch and enroll Kibana with security enabled" section.
Hope this helps!!