# Heartbeat : log http response

**URL:** <https://discuss.elastic.co/t/heartbeat-log-http-response/85515>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [May 12, 2017, 7:41am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515 "2017-05-12T07:41:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![demethyl](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@demethyl](https://discuss.elastic.co/u/demethyl)\
**Post date:** [May 12, 2017, 7:41am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/1 "2017-05-12T07:41:47Z")

</div>

Hi,

i made a very fancy /ping uri on my servers, to have jvm infos & more stuff  
I wanted to use heartbeat to check status avaibility and stock the whole json response into ES documents

i cant find how to do this : any clue ?

Regards,  
Guillaume

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 12, 2017, 9:55am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/2 "2017-05-12T09:55:15Z")

</div>

Sounds to me like the [Metricbeat HTTP module](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-http.html) is a better fit for that. Unfortunately it's only released in 6.0.0-alpha1 for the moment.

---

<div class="post-metadata">

**Author:** ![demethyl](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@demethyl](https://discuss.elastic.co/u/demethyl)\
**Post date:** [May 12, 2017, 10:08am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/3 "2017-05-12T10:08:13Z")

</div>

thx for your idea tudor, but how can i do a URL(and URI) monitoring with metricbeat?  
No module seems to handle this feature..

Edit : my mistake: i looked at metricbeat and not http metricbeat

Edit 2 : same issue : [https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-metricset-http-json.html#\_response\_enabled](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-metricset-http-json.html#_response_enabled)

=\> cant get response body to stock it as field

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 12, 2017, 10:02pm UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/4 "2017-05-12T22:02:20Z")

</div>

From my understanding, the stuff under `http_json_namespace` is the response body. Isn't that what you are looking for?

---

<div class="post-metadata">

**Author:** ![demethyl](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@demethyl](https://discuss.elastic.co/u/demethyl)\
**Post date:** [May 15, 2017, 8:02am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/5 "2017-05-15T08:02:14Z")

</div>

@tudor,

ty im gonna do some tests, and as you said, ill wait for a 6.0.0 non beta to industrialize it if its ok

thx again for pointing this!

---

<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:** [June 12, 2017, 8:11am UTC](https://discuss.elastic.co/t/heartbeat-log-http-response/85515/6 "2017-06-12T08:11:58Z")

</div>

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