dmcn_es
(Daragh)
January 28, 2017, 4:43pm
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
This suggests that Elasticsearch is not running on port 9200, but something else. Or are you trying to proxy load-balance Elasticsearch?
dmcn_es
(Daragh)
January 28, 2017, 6:03pm
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
dmcn_es
(Daragh)
January 30, 2017, 9:08am
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
(system)
Closed
February 27, 2017, 9:08am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.