# Display response body of Heartbeat in Kibana Uptime

**URL:** <https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011>\
**Category:** Synthetics\
**Created:** [July 21, 2020, 11:22am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011 "2020-07-21T11:22:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [July 21, 2020, 11:22am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/1 "2020-07-21T11:22:54Z")

</div>

Dear Elastic-Team,

in Heartbeat I am calling the actuator (info) endpoints to verify if the services are running. The endpoints are responding with a json body that includes the version of the service. I would want to display this version field in Kibana Uptime for each service. Is this possible or would I have to go with HTTP beat and create a seperate Dashboard for this?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 22, 2020, 12:24am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/2 "2020-07-22T00:24:41Z")

</div>

Heartbeat by default only records the body for errors, but you can have it record it every time. See [HTTP response docs](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-http-options.html#monitor-http-response).

---

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [July 22, 2020, 7:52am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/3 "2020-07-22T07:52:36Z")

</div>

Thanks, thats what I am looking for. Is it possible displaying the body or parts of the body in Uptime though?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 22, 2020, 4:46pm UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/4 "2020-07-22T16:46:39Z")

</div>

No. There are a number of issues with rendering arbitrary HTML from other sites (security aside, it often just doesn't work), and the fact that Heartbeat by default only captures the first 1024k. Can you share your use case? Why would you like the HTML rendered?

The main use case for the body is to look at detailed errors.

---

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [July 23, 2020, 9:48am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/5 "2020-07-23T09:48:07Z")

</div>

It's not HTML, it's JSON. We develop in microservices and each of them has an endpoint (Spring actuator endpoint) that returns info on the version, build time and git info in a JSON. It would be really nice to display this info like in another column in Uptime for each service so you can also check if the services have the right version and so on next to if they are running. But if that doesnt work I guess the way to go then would be with HTTPbeat and a seperate dashboard in Kibana right?

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [July 23, 2020, 12:30pm UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/6 "2020-07-23T12:30:04Z")

</div>

@sbienert uptime does display body for each ping in details page, go to ping list and expand the row and you will see body if you are recording it

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6d699c06d19cca6e1d9b584d5c6a299db20d7d4.png)

example config i used

```auto
  - type: http
    id: ir-elastic-co
    name: Elastic Investor Relations
    urls: ["https://ir.elastic.co/home/default.aspx"]
    schedule: "@every 60s"
    tags: ["org:elastic"]
    response.include_body_max_bytes: 99999
    response.include_body: always
    check.response:
      body:
        - Latestttt

```

here is the docs explaining all hearbeat options [https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-http-options.html](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-http-options.html)

---

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [July 30, 2020, 9:43am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/7 "2020-07-30T09:43:08Z")

</div>

Hey, can it be thoug, that the body is only shown, when there is a body mismatch? Why is that the case? I have

```auto
     response.include_body_max_bytes: 99999
        response.include_body: always

```

included in my config, but it's not showing in Uptime.

---

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [July 30, 2020, 10:24am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/8 "2020-07-30T10:24:47Z")

</div>

Aah I see it's in the details view of the monitor. okay sorry, a bit more laborious but that's basically what I want. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [August 3, 2020, 11:33am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/9 "2020-08-03T11:33:31Z")

</div>

@sbienert I am glad to hear that. Feel free to open any suggestion, feedback on using uptime app in our repo

[https://github.com/elastic/uptime](https://github.com/elastic/uptime)

We will appreciate it 🙂

---

<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 31, 2020, 11:33am UTC](https://discuss.elastic.co/t/display-response-body-of-heartbeat-in-kibana-uptime/242011/10 "2020-08-31T11:33:32Z")

</div>

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