# How to store boolean value or empty-able value in Index Connector of Kibana Alerts?

**URL:** https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481
**Category:** Kibana
**Created:** [February 6, 2021, 3:11am UTC](https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481 "2021-02-06T03:11:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)
#### Post date: [February 6, 2021, 3:11am UTC](https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481/1 "2021-02-06T03:11:29Z")

</div>

Hi thanks for the lib! I see the `{{state.isTriggered}}` is a boolean. However, I cannot write down that format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e8b47d6b360bc93ac1bd80dcab4fb1b912627409.png)

If I use "{{state.isTriggered}}", then the document fail to index, because boolean fields cannot accept string values.

In addition, for values with type `date`, it seems that, when it is empty, the `""` will fail to index?

Thanks!

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [February 9, 2021, 11:37am UTC](https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481/2 "2021-02-09T11:37:48Z")

</div>

This seems like a bug to me. Can you post it here?

> **[elastic/kibana](https://github.com/elastic/kibana)**
>
> Your window into the Elastic Stack. Contribute to elastic/kibana development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)
#### Post date: [February 10, 2021, 12:10pm UTC](https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481/3 "2021-02-10T12:10:45Z")

</div>

> <https://github.com/elastic/kibana/issues/90924>
>
> Cross posted from: https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481 according to the suggestion of @Marius\_Dragomir
> Hi thanks for the lib! I see the {{state.isTriggered}} is a boolean....

---

<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: [March 10, 2021, 12:11pm UTC](https://discuss.elastic.co/t/how-to-store-boolean-value-or-empty-able-value-in-index-connector-of-kibana-alerts/263481/4 "2021-03-10T12:11:28Z")

</div>

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