# Kibana: how to set up alerts on a boolean field

**URL:** <https://discuss.elastic.co/t/kibana-how-to-set-up-alerts-on-a-boolean-field/318694>\
**Category:** Kibana\
**Created:** [November 10, 2022, 9:05pm UTC](https://discuss.elastic.co/t/kibana-how-to-set-up-alerts-on-a-boolean-field/318694 "2022-11-10T21:05:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohsin106](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohsin106/32/65203_2.png) [@mohsin106](https://discuss.elastic.co/u/mohsin106)\
**Post date:** [November 10, 2022, 9:05pm UTC](https://discuss.elastic.co/t/kibana-how-to-set-up-alerts-on-a-boolean-field/318694/1 "2022-11-10T21:05:06Z")

</div>

Hi,

I have a dataset that contains fields pertaining to a specific optical transport device.

My dataset:

```auto
"slot": "LM-1",
"source": "1.3.1.8",
"timestamp": 1668113939,
"serial_no": "xxxxxxxx",
"hardware_version": "001",
"empty": false,
"mfg_name": "vendor",
"parent": "SLOT-1",

```

I want to set up an alert to send me all this info when empty changes its value to `true`.

Is this possible with Kibana?

Thank you.

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [December 5, 2022, 1:11pm UTC](https://discuss.elastic.co/t/kibana-how-to-set-up-alerts-on-a-boolean-field/318694/2 "2022-12-05T13:11:23Z")

</div>

Hi @mohsin106,

Yes, it's possible to define alerts via Kibana: Stack Management \> Rules page. "Elasticsearch query" rule type can work for your use case.

Another option would be to define a [Watcher](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-alerting.html) and you will be able to access documents via `ctx.payload.hits` in actions configuration.

---

<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:** [January 2, 2023, 1:12pm UTC](https://discuss.elastic.co/t/kibana-how-to-set-up-alerts-on-a-boolean-field/318694/3 "2023-01-02T13:12:07Z")

</div>

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