# How to exclude doc\_count value in result? Kibana Query

**URL:** <https://discuss.elastic.co/t/how-to-exclude-doc-count-value-in-result-kibana-query/235657>\
**Category:** Kibana\
**Created:** [June 4, 2020, 1:30am UTC](https://discuss.elastic.co/t/how-to-exclude-doc-count-value-in-result-kibana-query/235657 "2020-06-04T01:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdalvi](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@vdalvi](https://discuss.elastic.co/u/vdalvi)\
**Post date:** [June 4, 2020, 1:30am UTC](https://discuss.elastic.co/t/how-to-exclude-doc-count-value-in-result-kibana-query/235657/1 "2020-06-04T01:30:46Z")

</div>

Hi,

I have a question, I am not sure if this is technically possible however. I want to exclude/not display the "doc\_count:value" in my result.

Below is a snippet of my result

```auto
{
          "key_as_string" : "2020-06-04T00:00:00.000Z",
          "key" : 1591228800000,
          "doc_count" : 369748443,
          "cmtsId_list" : {
            "doc_count_error_upper_bound" : 459728,
            "sum_other_doc_count" : 368764459,
            "buckets" : [
              {
                "key" : "18ff3947d5c33c89ad946f0cd85e0ff14f28dcd0",
                "doc_count" : 338182
              },
              {
                "key" : "d9096c0979c4adf5d112ae6ea6f35e6a658525fa",
                "doc_count" : 338064
              },
              {
                "key" : "87abc3414726186173dab0435240834d31207d92",
                "doc_count" : 307738
              }
            ]
          },
          "numberof_cmtsId" : {
            "value" : 4134
          }
        },

```

Is it possible to remove the doc\_count:value in my result ? I still want the "key:value" to show up

Below is what I am looking for

```auto
{
          "key_as_string" : "2020-06-04T00:00:00.000Z",
          "key" : 1591228800000,
          "doc_count" : 369748443,
          "cmtsId_list" : {
            "doc_count_error_upper_bound" : 459728,
            "sum_other_doc_count" : 368764459,
            "buckets" : [
              {
                "key" : "18ff3947d5c33c89ad946f0cd85e0ff14f28dcd0"
              },
              {
                "key" : "d9096c0979c4adf5d112ae6ea6f35e6a658525fa"
              },
              {
                "key" : "87abc3414726186173dab0435240834d31207d92"
              }
            ]
          },
          "numberof_cmtsId" : {
            "value" : 4134
          }
        },

```

Any inputs ? 🙂

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [June 18, 2020, 6:36pm UTC](https://discuss.elastic.co/t/how-to-exclude-doc-count-value-in-result-kibana-query/235657/2 "2020-06-18T18:36:17Z")

</div>

Hi @vdalvi,

This doesn't seem to be possible today. It seems to have been requested a few times already with a decision to keep the value in the result ([elasticsearch/issues#17141](https://github.com/elastic/elasticsearch/issues/17141) and [elasticsearch/issues#7869](https://github.com/elastic/elasticsearch/issues/7869)).

Is there a use case you'd wish to not have this field displayed?

---

<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 16, 2020, 6:36pm UTC](https://discuss.elastic.co/t/how-to-exclude-doc-count-value-in-result-kibana-query/235657/3 "2020-07-16T18:36:24Z")

</div>

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