# How to retrieve cluster and node stats on data node when disable http (http.enabled: false)

**URL:** <https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370>\
**Category:** Elasticsearch\
**Created:** [October 22, 2014, 1:17am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370 "2014-10-22T01:17:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terence\_Tung](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Terence\_Tung](https://discuss.elastic.co/u/Terence_Tung)\
**Post date:** [October 22, 2014, 1:17am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/1 "2014-10-22T01:17:23Z")

</div>

hi there,

i followed the recommendation from  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html)  
to create dedicated master, client and data nodes. for my master and data  
nodes, i disabled http.enabled so they will communicate via transport 9300.  
however, previously we were using curl localhost:9200/\_cluster/stats and  
/\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread  
counts, and etc). my question is how can i fetch these monitoring stats  
anymore? i searched and read thru elasticsearch doc but couldn't find it.

please help.

thanks and really appreciate for any help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 22, 2014, 6:13am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/2 "2014-10-22T06:13:28Z")

</div>

How do you search in your cluster?  
Are you using Java Client?

> Le 22 oct. 2014 à 03:17, Terence Tung [terence@teambanjo.com](mailto:terence@teambanjo.com) a écrit :
> 
> hi there,
> 
> i followed the recommendation from [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html) to create dedicated master, client and data nodes. for my master and data nodes, i disabled http.enabled so they will communicate via transport 9300. however, previously we were using curl localhost:9200/\_cluster/stats and /\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread counts, and etc). my question is how can i fetch these monitoring stats anymore? i searched and read thru elasticsearch doc but couldn't find it.
> 
> please help.
> 
> ## thanks and really appreciate for any help.
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6A004C59-3769-4107-A296-ED64B5110BDF%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/6A004C59-3769-4107-A296-ED64B5110BDF%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Terence\_Tung](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Terence\_Tung](https://discuss.elastic.co/u/Terence_Tung)\
**Post date:** [October 22, 2014, 4:58pm UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/3 "2014-10-22T16:58:34Z")

</div>

the search is still using HTTP API, we have an ELB and 3 dedicated client  
nodes behind ELB, so all search request will go thru that ELB via HTTP. so  
monitoring stats on client node doesn't have problem, the problem is i  
cannot do "curl localhost:9200" on the dedicated master and data nodes.

On Tuesday, October 21, 2014 11:13:37 PM UTC-7, David Pilato wrote:

> How do you search in your cluster?  
> Are you using Java Client?
> 
> Le 22 oct. 2014 à 03:17, Terence Tung \<[ter...@teambanjo.com](mailto:ter...@teambanjo.com) \<javascript:\>\>  
> a écrit :
> 
> hi there,
> 
> i followed the recommendation from  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html)  
> to create dedicated master, client and data nodes. for my master and data  
> nodes, i disabled http.enabled so they will communicate via transport 9300.  
> however, previously we were using curl localhost:9200/\_cluster/stats and  
> /\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread  
> counts, and etc). my question is how can i fetch these monitoring stats  
> anymore? i searched and read thru elasticsearch doc but couldn't find it.
> 
> please help.
> 
> thanks and really appreciate for any help.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/514cce92-3c5f-4c23-a825-6105f89d18a5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/514cce92-3c5f-4c23-a825-6105f89d18a5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Terence\_Tung](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Terence\_Tung](https://discuss.elastic.co/u/Terence_Tung)\
**Post date:** [October 23, 2014, 10:46pm UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/4 "2014-10-23T22:46:51Z")

</div>

can anyone please help? thanks.

On Wednesday, October 22, 2014 9:58:35 AM UTC-7, Terence Tung wrote:

> the search is still using HTTP API, we have an ELB and 3 dedicated client  
> nodes behind ELB, so all search request will go thru that ELB via HTTP. so  
> monitoring stats on client node doesn't have problem, the problem is i  
> cannot do "curl localhost:9200" on the dedicated master and data nodes.
> 
> On Tuesday, October 21, 2014 11:13:37 PM UTC-7, David Pilato wrote:
> 
> > How do you search in your cluster?  
> > Are you using Java Client?
> > 
> > Le 22 oct. 2014 à 03:17, Terence Tung [ter...@teambanjo.com](mailto:ter...@teambanjo.com) a écrit :
> > 
> > hi there,
> > 
> > i followed the recommendation from  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html)  
> > to create dedicated master, client and data nodes. for my master and data  
> > nodes, i disabled http.enabled so they will communicate via transport 9300.  
> > however, previously we were using curl localhost:9200/\_cluster/stats and  
> > /\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread  
> > counts, and etc). my question is how can i fetch these monitoring stats  
> > anymore? i searched and read thru elasticsearch doc but couldn't find it.
> > 
> > please help.
> > 
> > thanks and really appreciate for any help.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2a031652-baab-4a34-901c-a8cd5807efd4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dff901a8-09e2-4689-a0e5-523191722c17%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dff901a8-09e2-4689-a0e5-523191722c17%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [October 24, 2014, 3:27am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/5 "2014-10-24T03:27:37Z")

</div>

Hello,

This works for SPM [http://sematext.com/spm/](http://sematext.com/spm/):  
[https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+FAQ#SPMFAQ-CanSPMcollectmetricsevenwhenElasticsearchHTTPAPIisdisabled](https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+FAQ#SPMFAQ-CanSPMcollectmetricsevenwhenElasticsearchHTTPAPIisdisabled)?  
so maybe it will work for you, too.

## Otis

Monitoring \* Alerting \* Anomaly Detection \* Centralized Log Management  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Tuesday, October 21, 2014 9:17:23 PM UTC-4, Terence Tung wrote:

> hi there,
> 
> i followed the recommendation from  
> [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html)  
> to create dedicated master, client and data nodes. for my master and data  
> nodes, i disabled http.enabled so they will communicate via transport 9300.  
> however, previously we were using curl localhost:9200/\_cluster/stats and  
> /\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread  
> counts, and etc). my question is how can i fetch these monitoring stats  
> anymore? i searched and read thru elasticsearch doc but couldn't find it.
> 
> please help.
> 
> thanks and really appreciate for any help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/68510f29-c9cb-40d8-a006-57dc3a4fb6c2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/68510f29-c9cb-40d8-a006-57dc3a4fb6c2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Terence\_Tung](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Terence\_Tung](https://discuss.elastic.co/u/Terence_Tung)\
**Post date:** [October 25, 2014, 1:07am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/6 "2014-10-25T01:07:11Z")

</div>

that's a good trick! thanks Otis!

On Thursday, October 23, 2014 8:27:37 PM UTC-7, Otis Gospodnetic wrote:

> Hello,
> 
> This works for SPM [http://sematext.com/spm/](http://sematext.com/spm/):  
> [https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+FAQ#SPMFAQ-CanSPMcollectmetricsevenwhenElasticsearchHTTPAPIisdisabled](https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+FAQ#SPMFAQ-CanSPMcollectmetricsevenwhenElasticsearchHTTPAPIisdisabled)?  
> so maybe it will work for you, too.
> 
> ## Otis
> 
> Monitoring \* Alerting \* Anomaly Detection \* Centralized Log Management  
> Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)
> 
> On Tuesday, October 21, 2014 9:17:23 PM UTC-4, Terence Tung wrote:
> 
> > hi there,
> > 
> > i followed the recommendation from  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-node.html)  
> > to create dedicated master, client and data nodes. for my master and data  
> > nodes, i disabled http.enabled so they will communicate via transport 9300.  
> > however, previously we were using curl localhost:9200/\_cluster/stats and  
> > /\_node/stats to fetch monitoring stats(e.g. heap usage, num of docs, thread  
> > counts, and etc). my question is how can i fetch these monitoring stats  
> > anymore? i searched and read thru elasticsearch doc but couldn't find it.
> > 
> > please help.
> > 
> > thanks and really appreciate for any help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ecce5f3e-22d3-4207-98b7-c530019adbfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ecce5f3e-22d3-4207-98b7-c530019adbfc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:53am UTC](https://discuss.elastic.co/t/how-to-retrieve-cluster-and-node-stats-on-data-node-when-disable-http-http-enabled-false/20370/7 "2017-07-06T00:53:55Z")

</div>


