Search code examples
elasticsearchubuntu-20.04

Elasticsearch is not running in browser


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

Error response

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


Solution

  • 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:

    1. call https:// - as you did successfully via curl

    2. disable HTTP security, but that's discouraged.