# Detecting Outliers without ML?

**URL:** <https://discuss.elastic.co/t/detecting-outliers-without-ml/200877>\
**Category:** Kibana\
**Created:** [September 24, 2019, 1:30pm UTC](https://discuss.elastic.co/t/detecting-outliers-without-ml/200877 "2019-09-24T13:30:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dar](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dar](https://discuss.elastic.co/u/dar)\
**Post date:** [September 24, 2019, 1:30pm UTC](https://discuss.elastic.co/t/detecting-outliers-without-ml/200877/1 "2019-09-24T13:30:03Z")

</div>

Is it possible to have Kibana show/highlight documents that have the biggest percentage variance in a given numeric field over the selected time slice? Imagine I'm logging hits containing URLs and response times:

```
URL, Response Time (ms)
www.site1.com,25
www.site1.com,28
www.site1.com,35
www.site2.com,141
www.site2.com,150
www.site3.com,1320
www.site3.com,1350

```

...how would I have Kibana flag up the third hit to [www.site1.com](http://www.site1.com) as being anomalous because of the percentage variance in response time, please?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [September 25, 2019, 8:57am UTC](https://discuss.elastic.co/t/detecting-outliers-without-ml/200877/2 "2019-09-25T08:57:52Z")

</div>

Hi @dar,

You might be able to use [Kibana watchers](https://www.elastic.co/guide/en/kibana/current/watcher-ui.html) to do something comparable by querying both the max value of response time and the [standard deviation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-extendedstats-aggregation.html) and triggering when these two differ too much. Keep in mind though that outlier detection is a complicated topic with a lot of difficult to tune edge cases when done in production settings.

---

<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:** [October 23, 2019, 8:57am UTC](https://discuss.elastic.co/t/detecting-outliers-without-ml/200877/3 "2019-10-23T08:57:53Z")

</div>

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