Error log curl: (52) Empty reply from server in v8.11.3

Hi All,

I am new to ELK and started using the same via docker compose.
I have used the standard docker-compose.yaml file which is available in below link.

As shown in below logs all containers are up and running

$ sudo docker container ls 
CONTAINER ID   IMAGE                                                  COMMAND                  CREATED          STATUS                    PORTS                                                                                                                                                 NAMES
b35f00b59c6f   docker.elastic.co/logstash/logstash:8.11.3             "/usr/local/bin/dock…"   11 minutes ago   Up 10 minutes             0.0.0.0:5000->5000/udp, :::5000->5000/udp, 5044/tcp, 0.0.0.0:5000->5000/tcp, 0.0.0.0:5044->5044/udp, :::5000->5000/tcp, :::5044->5044/udp, 9600/tcp   elastic-logstash-1
215e5633c5a8   docker.elastic.co/kibana/kibana:8.11.3                 "/bin/tini -- /usr/l…"   11 minutes ago   Up 10 minutes (healthy)   0.0.0.0:5601->5601/tcp, :::5601->5601/tcp                                                                                                             elastic-kibana-1
a5082ab5b96e   docker.elastic.co/elasticsearch/elasticsearch:8.11.3   "/bin/tini -- /usr/l…"   11 minutes ago   Up 11 minutes (healthy)   9200/tcp, 9300/tcp                                                                                                                                    elastic-es03-1
68c089bcce7c   docker.elastic.co/elasticsearch/elasticsearch:8.11.3   "/bin/tini -- /usr/l…"   11 minutes ago   Up 11 minutes (healthy)   9200/tcp, 9300/tcp                                                                                                                                    elastic-es02-1
63a2280866b7   docker.elastic.co/elasticsearch/elasticsearch:8.11.3   "/bin/tini -- /usr/l…"   11 minutes ago   Up 11 minutes (healthy)   0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp                                                                                                   elastic-es01-1

Now If i try below command to access the elastic server from the same machine I get error saying empty reply

$ curl -X GET "http://elastic:elasticpass@127.0.0.1:9200"
curl: (52) Empty reply from server

$ curl http://127.0.0.1:9200
curl: (52) Empty reply from server

$ curl http://localhost:9200 -k -u elastic:elasticpass
curl: (52) Empty reply from server

Any pointers would be of great help

You need to use https, you are using http.

Thanks that resolved the issue

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.