# Log threshold alert

**URL:** <https://discuss.elastic.co/t/log-threshold-alert/245317>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [August 17, 2020, 9:09pm UTC](https://discuss.elastic.co/t/log-threshold-alert/245317 "2020-08-17T21:09:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronin](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ronin](https://discuss.elastic.co/u/Ronin)\
**Post date:** [August 17, 2020, 9:09pm UTC](https://discuss.elastic.co/t/log-threshold-alert/245317/1 "2020-08-17T21:09:10Z")

</div>

We are attempting to make a Log Threshold alert, however it is sending alerts when it shouldn't be. The query we are trying to alert on is `labels.application: "theapp" and message: "*limit request headers fields size*"`. Inside the log threshold alert we have:

```auto
WHEN more than or equals 1 log entry
WITH labels.application IS theapp
AND message MATCHES PHRASE limit request headers fields size
FOR THE LAST 10 minutes

```

Is there any documentation for the different types of alerts you can make? On [https://www.elastic.co/guide/en/kibana/current/alert-types.html](https://www.elastic.co/guide/en/kibana/current/alert-types.html) it only details the index threshold.

---

<div class="post-metadata">

**Author:** ![Kerry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kerry/32/40330_2.png) [@Kerry](https://discuss.elastic.co/u/Kerry)\
**Post date:** [August 20, 2020, 12:27pm UTC](https://discuss.elastic.co/t/log-threshold-alert/245317/2 "2020-08-20T12:27:50Z")

</div>

Hi @Ronin,

Sorry to hear you're having problems with log alerts.

The documentation for log alerts exist [here](https://www.elastic.co/guide/en/logs/guide/7.9/create-log-alert.html), however they are limited at the moment. We are due to expand these soon.

The `MATCHES PHRASE` comparator uses a [match phrase query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html) for querying data.

It looks like you want to use a wildcard query instead, unfortunately this isn't supported yet, but [we do have a ticket](https://github.com/elastic/kibana/issues/74130) for it. I can't guarantee when it will be placed on the roadmap, but it's becoming a highly requested feature.

---

<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 17, 2020, 12:28pm UTC](https://discuss.elastic.co/t/log-threshold-alert/245317/3 "2020-09-17T12:28:01Z")

</div>

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