# Unable to view cluster status with curl command

**URL:** <https://discuss.elastic.co/t/unable-to-view-cluster-status-with-curl-command/139257>\
**Category:** Elasticsearch\
**Created:** [July 10, 2018, 2:59am UTC](https://discuss.elastic.co/t/unable-to-view-cluster-status-with-curl-command/139257 "2018-07-10T02:59:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_99](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@john\_99](https://discuss.elastic.co/u/john_99)\
**Post date:** [July 10, 2018, 2:59am UTC](https://discuss.elastic.co/t/unable-to-view-cluster-status-with-curl-command/139257/1 "2018-07-10T02:59:36Z")

</div>

Hi,

I am trying to check my cluster status with curl command  
curl [http://localhost:9200](http://localhost:9200) or  
curl -XGET '[http://localhost:9200/\_cluster/state?pretty](http://localhost:9200/_cluster/state?pretty)'

getting below

//DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"\>  
html\>  
head\>  
link rel="stylesheet" href="[http://www.mailcontrol.com/css/proxy.css](http://www.mailcontrol.com/css/proxy.css)" type="text/css"\>  
link rel="shortcut icon" href="[http://www.mailcontrol.com/images/wd\_accessdenied.ico](http://www.mailcontrol.com/images/wd_accessdenied.ico)" type="image/x-icon"\>  
title\>Cannot connect  
/head\>  
body\>  
div align="center"\>  
div id="pagecontainer"\> ![](http://www.mailcontrol.com/images/block.png)  
h1\>The page cannot be displayed  
div class="row"\>  
table\>  
tr\>

Reason:The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties.  
tr\>URL:[http://localhost:9200/\_cluster/state?pretty](http://localhost:9200/_cluster/state?pretty)  
tr\>  
tr\>Options:  
td class="item"\>  
ul\>  
li\>Click the Refresh button or try again later.  
li\>If you typed the page address in the Address bar, make sure that is spelled correctly.  
li\>If you are trying to reach a secure site, make sure your Security settings can support it.  
/ul\>  
/td\>  
tr\>

  
tr\>  
script\>  
document.write("

Click Go Back or use the browser's Back button to return to the previous page.

")  
document.write("")  
/script\>  
noscript\>  
Press **Backspace** or use the Browser's Back Button to return to the previous page.  
/noscript\>  
/td\> /div\> //

Please help me out why i am not able to see cluster status

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2018, 3:02am UTC](https://discuss.elastic.co/t/unable-to-view-cluster-status-with-curl-command/139257/2 "2018-07-10T03:02:29Z")

</div>

Please don't start multiple topics on the same issue, it makes it harder for us to assist you.

Let's continue the discussion in [Not able to check cluster status with curl command](https://discuss.elastic.co/t/not-able-to-check-cluster-status-with-curl-command/139254/5)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 7, 2018, 3:02am UTC](https://discuss.elastic.co/t/unable-to-view-cluster-status-with-curl-command/139257/3 "2018-08-07T03:02:44Z")

</div>

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