Curl test command does


(Daragh) #1

Hi,

When I try to do curl test command it does not show valid output but a large amount of
html web page code as an error, sample below.

I can connect to this servers kibana webpage.

[root@logstash1 elasticsearch-curator]# curl -XGET http://127.0.0.1:9200

ERROR: The requested URL could not be retrieved <!-- /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates

Thanks,
Daragh


(Aaron Mildenstein) #2

This suggests that Elasticsearch is not running on port 9200, but something else. Or are you trying to proxy load-balance Elasticsearch?


(Daragh) #3

Hi Aaron,
Thanks for your reply. I can check if there is a proxy server involved
on Monday. I have to consult staff at the servers location, which is different to my work location.

Thanks,
Daragh


(Daragh) #4

Hi Aaron,
yes there is a proxy involved and when I unset that from the default server config,
then curl command works as below.

Thanks,
Daragh

Last login: Fri Jan 27 11:30:38 2017 from
[root@logstash1 ~]# env | grep proxy
http_proxy=tfzproxy1:3128
https_proxy=tfzproxy1:3128
[root@logstash1 ~]#
[root@logstash1 ~]#
[root@logstash1 ~]#
[root@logstash1 ~]#
[root@logstash1 ~]# unset http_proxy
[root@logstash1 ~]# unset https_proxy
[root@logstash1 ~]# env | grep proxy
[root@logstash1 ~]#
[root@logstash1 ~]#
[root@logstash1 ~]#
[root@logstash1 ~]# curl localhost:9200
{
"name" : "Zebediah Killgrave",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.4.0",
"build_hash" : "ce9f0c7394dee074091dd1bc4e9469251181fc55",
"build_timestamp" : "2016-08-29T09:14:17Z",
"build_snapshot" : false,
"lucene_version" : "5.5.2"
},
"tagline" : "You Know, for Search"
}
[root@logstash1 ~]#


(system) #5

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