# How to group the documents which have subset of similar values

**URL:** https://discuss.elastic.co/t/how-to-group-the-documents-which-have-subset-of-similar-values/185737
**Category:** Kibana
**Created:** [June 13, 2019, 11:56pm UTC](https://discuss.elastic.co/t/how-to-group-the-documents-which-have-subset-of-similar-values/185737 "2019-06-13T23:56:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ashokchinna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashokchinna/32/47123_2.png) [@ashokchinna](https://discuss.elastic.co/u/ashokchinna)
#### Post date: [June 13, 2019, 11:56pm UTC](https://discuss.elastic.co/t/how-to-group-the-documents-which-have-subset-of-similar-values/185737/1 "2019-06-13T23:56:35Z")

</div>

I have error table which logs all the errors.

I want to group all similar errors and exceptions.

Few are straight forward, example,

Document 1 , Error Message - Database mark down

Document 2 , Error Message - Service Mark Down

Document 3, Error Message - Database mark down

Document 4, Error Message - Service Mark Down

Document 5, Error Message - Service Mark Down

In the above example, Document 1 and Document 3 are grouped into one category.

Document 2,4,5 are grouped into one category.

Let's take an another example (which i am having problem in grouping),

Document 6, Error Message - 1121 Data locked for account no 123456789

Document 7, Error Message - 1121 Data locked for account no 438192303

Document 8, Error Message - 1121 Data locked for account no 678976543

For above example even though all belongs to Data locked issue, I am not able to group them into same category in the Kibana Visualization.

---

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [June 24, 2019, 2:10pm UTC](https://discuss.elastic.co/t/how-to-group-the-documents-which-have-subset-of-similar-values/185737/2 "2019-06-24T14:10:58Z")

</div>

Hi Ashok,

Can you describe what kind of visualization you're creating? Maybe a screenshot? Are you using a Filters aggregation? What version of Kibana are you on?

Thanks,  
Lee

---

<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: [July 22, 2019, 2:11pm UTC](https://discuss.elastic.co/t/how-to-group-the-documents-which-have-subset-of-similar-values/185737/3 "2019-07-22T14:11:15Z")

</div>

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