# How to count that including specific text

**URL:** https://discuss.elastic.co/t/how-to-count-that-including-specific-text/104983
**Category:** Kibana
**Created:** [October 24, 2017, 12:38am UTC](https://discuss.elastic.co/t/how-to-count-that-including-specific-text/104983 "2017-10-24T00:38:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![360da53128f565a93f6a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/360da53128f565a93f6a/32/23319_2.png) [@360da53128f565a93f6a](https://discuss.elastic.co/u/360da53128f565a93f6a)
#### Post date: [October 24, 2017, 12:38am UTC](https://discuss.elastic.co/t/how-to-count-that-including-specific-text/104983/1 "2017-10-24T00:38:09Z")

</div>

hello

i have some question and sorry for my english

I'm implementing data analysis through ELK,  
To find the count of a value that contains a specific string in a field  
I'm trying to use Visualize's JSON Input feature,

I can not find what kind of format I should enter.  
If you can check it, please answer it.

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [October 25, 2017, 12:58pm UTC](https://discuss.elastic.co/t/how-to-count-that-including-specific-text/104983/2 "2017-10-25T12:58:46Z")

</div>

Hi @360da53128f565a93f6a,

if I understand you correctly, you should be able to achieve that without using JSON input but with a combination of the `count` metric and a `filters` bucket aggregation.

---

<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: [November 22, 2017, 12:58pm UTC](https://discuss.elastic.co/t/how-to-count-that-including-specific-text/104983/3 "2017-11-22T12:58:56Z")

</div>

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