# Kibana filter by sort and uniq value

**URL:** <https://discuss.elastic.co/t/kibana-filter-by-sort-and-uniq-value/256659>\
**Category:** Kibana\
**Created:** [November 25, 2020, 12:48pm UTC](https://discuss.elastic.co/t/kibana-filter-by-sort-and-uniq-value/256659 "2020-11-25T12:48:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohooss](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hohooss](https://discuss.elastic.co/u/hohooss)\
**Post date:** [November 25, 2020, 12:48pm UTC](https://discuss.elastic.co/t/kibana-filter-by-sort-and-uniq-value/256659/1 "2020-11-25T12:48:57Z")

</div>

Hello,

At the discover navigation page, I would like to do a search (KQL) by creating a filter that will find a pattern for a specific field, sort all values and produce unique values. Is this possible? If yes, how?

thank you.

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [November 25, 2020, 2:44pm UTC](https://discuss.elastic.co/t/kibana-filter-by-sort-and-uniq-value/256659/2 "2020-11-25T14:44:57Z")

</div>

Hi @hohooss,

You can check [examples](https://www.elastic.co/guide/en/kibana/current/kuery-query.html) in order to understand what you can do with KQL. I don't think its possible to complete your request (produce custom values) via Discover filtering only, I would suggest taking a look at [scripted fields](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html), you can create a new field and set formula/rule for a field value

Regards, Dzmitry

---

<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:** [December 23, 2020, 2:44pm UTC](https://discuss.elastic.co/t/kibana-filter-by-sort-and-uniq-value/256659/3 "2020-12-23T14:44:58Z")

</div>

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