# Kibana Alerts - Log threshold keyword

**URL:** <https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709>\
**Category:** Kibana\
**Created:** [August 28, 2020, 3:55am UTC](https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709 "2020-08-28T03:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bevano](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bevano](https://discuss.elastic.co/u/bevano)\
**Post date:** [August 28, 2020, 3:55am UTC](https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709/1 "2020-08-28T03:55:14Z")

</div>

Hi All,

Trying to configure a 'Log Threshold Alert' in Kibana but running into a problem when doing a conditional statement to a field

In the following image, I am trying to alert when message\_code.keyword equal XXXX.  
In my documents, this field is 4 digits long and usually contains a leading 0. For example some of the fields are:

- 0200
- 0210
- 0220
- 0230

When I try and set the comparison value to a value that has a leading 0, it strips the 0 out.  
EG:

- 0200 -\> 200
- 0210 -\> 210

Is this a bug or is it something that I am doing wrong?

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

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 28, 2020, 8:18pm UTC](https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709/2 "2020-08-28T20:18:43Z")

</div>

That sounds like a bug. Mind creating an issue at [https://github.com/elastic/kibana/issues/new?template=Bug\_report.md](https://github.com/elastic/kibana/issues/new?template=Bug_report.md). Please include your kibana version and steps taken to create the alert

---

<div class="post-metadata">

**Author:** ![bevano](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bevano](https://discuss.elastic.co/u/bevano)\
**Post date:** [August 31, 2020, 1:31am UTC](https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709/3 "2020-08-31T01:31:05Z")

</div>

Done. For any future references: [https://github.com/elastic/kibana/issues/76254](https://github.com/elastic/kibana/issues/76254)

---

<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 28, 2020, 1:31am UTC](https://discuss.elastic.co/t/kibana-alerts-log-threshold-keyword/246709/4 "2020-09-28T01:31:11Z")

</div>

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