# Custom field / derived field in Heartbeat

**URL:** <https://discuss.elastic.co/t/custom-field-derived-field-in-heartbeat/99008>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [August 31, 2017, 1:33pm UTC](https://discuss.elastic.co/t/custom-field-derived-field-in-heartbeat/99008 "2017-08-31T13:33:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadevaprasadap](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mahadevaprasadap](https://discuss.elastic.co/u/mahadevaprasadap)\
**Post date:** [August 31, 2017, 1:33pm UTC](https://discuss.elastic.co/t/custom-field-derived-field-in-heartbeat/99008/1 "2017-08-31T13:33:05Z")

</div>

Is it possible to add derived field in HB?

Example: If "Up = true", I want to add "status=1" else "status=-1"

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 1, 2017, 8:30pm UTC](https://discuss.elastic.co/t/custom-field-derived-field-in-heartbeat/99008/2 "2017-09-01T20:30:51Z")

</div>

This can be done with Logstash. It cannot be done solely with Heartbeat.

FYI In Heartbeat the status field was changed to be `monitor.status = up/down`. [https://github.com/elastic/beats/pull/4091](https://github.com/elastic/beats/pull/4091)

---

<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:** [September 29, 2017, 8:31pm UTC](https://discuss.elastic.co/t/custom-field-derived-field-in-heartbeat/99008/3 "2017-09-29T20:31:04Z")

</div>

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