Reputation: 1503
I have downloaded the Elasticsearch 8.1 in my Ubuntu. After successful installation, when I execute
curl -u elastic https://127.0.0.1:9200 -k
It is showing expected elasticsearch response. But when I hit http://127.0.0.1:9200/
or http://localhost:9200
in my browser, it is returning
After installation, I added network.host: 127.0.0.1
to elasticsearch.yml
Can anybody help me, why it is not running in browser ?
I am using Ubuntu 20 OS & following this Doc
Upvotes: 6
Views: 4597
Reputation: 217314
As of version 8.0, Elasticsearch security is turned on by default and SSL/TLS is required for HTTP communications.
There are at least two options:
call https://
- as you did successfully via curl
disable HTTP security, but that's discouraged.
Upvotes: 6
Reputation: 653
Like others mentioned, from version 8.0 security is turned on by default. But if you just want to quickly set up elasticsearch locally (and so security is not a concern) you can disable security:
config
folderelasticsearch.yml
file and paste the following lines at the end:xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
xpack.security.http.ssl.enabled: false
Now you should be able to open http://127.0.0.1:9200 without login prompts (in the browser) and curl/postman, etc and get proper 200 responses.
Upvotes: 2
Reputation: 111
just put this url :
https://localhost:9200/
It run on the https, I hope it is helpfull.
Upvotes: 1
Reputation: 1163
I am using the windows platform, the steps are the same. When you run the elasticsearch.bat in cmd
use this port for elasticsearch HTTPS secure https://localhost:9200/
check the username and password scroll down the cmd running elasticsearch
After login into the elasticsearch. Hurry...
Thanks
But
the best solution is to use Docker Image of ELK stack which is easy instead of downloading the E L K and then run on the local machine.
Upvotes: 1