# Kibana - Data Table - Filtering - Grouping Data

**URL:** <https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670>\
**Category:** Kibana\
**Created:** [February 8, 2019, 5:11pm UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670 "2019-02-08T17:11:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimah](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dimah](https://discuss.elastic.co/u/dimah)\
**Post date:** [February 8, 2019, 5:11pm UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670/1 "2019-02-08T17:11:21Z")

</div>

Hi Kibana group,

I am trying to create a Data Table visualization where random text from a search string is grouped to show the count of how many times it has occurred.

As a simplified example my saved search returns:

"Certificate is: ACDE, authenticated"  
"Certificate is: XYLMz, authenticated"  
"Certificate is: NNR, authenticated"  
"Certificate is: ACDE, authenticated"  
"Certificate is: EEFFFFFF, authenticated"  
"Certificate is: ACDE, authenticated"  
"Certificate is: NNR, authenticated"

In this case, the desired table would be:

ACDE = 3  
XYLMz = 1  
NNR = 2  
EEFFFFFF = 1

How is this possible?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [February 22, 2019, 10:09am UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670/2 "2019-02-22T10:09:52Z")

</div>

Is there a method to determine where that text will be in the string?  
For the example you can use a scripted field to get the substring that is the desired text and then you can just make a data table with a Split by Terms on the scripted field.

---

<div class="post-metadata">

**Author:** ![dimah](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dimah](https://discuss.elastic.co/u/dimah)\
**Post date:** [February 22, 2019, 1:39pm UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670/3 "2019-02-22T13:39:09Z")

</div>

I think you are right, i came to that conclusion too while i was reasearching the documentation. However I cannot actually try scripted fields yet, the organization I work for has disabled our rights to use them..

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [February 22, 2019, 2:55pm UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670/4 "2019-02-22T14:55:51Z")

</div>

You could get away with it if the field was analyzed. Create a data table on the field that is analyzed and then filter out the terms that are common in the string, if they are a known quantity. Otherwise you're only chance would be to process the field at document ingest time and then create a field for that random text.

---

<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:** [March 22, 2019, 2:55pm UTC](https://discuss.elastic.co/t/kibana-data-table-filtering-grouping-data/167670/5 "2019-03-22T14:55:55Z")

</div>

Closed on March 22, 2019, 2:55pm UTC

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