# Got a problem with "size" in kibana

**URL:** <https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990>\
**Category:** Kibana\
**Created:** [September 7, 2016, 1:39pm UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990 "2016-09-07T13:39:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [September 7, 2016, 1:39pm UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990/1 "2016-09-07T13:39:55Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/3/390b210ccae60507eee0f2983d9d1e79fe9eca2e.JPG)

I loaded a file with 9177 records into ES 2.4.0 using logstash 2.4.0. When i seen the graph in Kibana 4.6.0 its giving abnormal results like when I mention "size" as 5 its showing the count as 8 (As like in the first pic). When I changed the size to 10 its showing the count as 10. but the actual result is 10.

I tried multi queries which is giving different results.

```auto
GET smsc_small/_search
{
  "query": {
    "bool": {
      "must": [
        {"term": {"OA": "DT-AIRCEL"}},
        {"term": {"DA": "918760689889"}}
      ]
    }
  }
}

```

```auto
"hits": {
    "total": 10,
    "max_score": 7.6744456,
    "hits": [
      {
        "_index": "smsc_small",
        "_type": "CDR",
        "

```

```auto
GET smsc_small/_search
{
  "size": 0, 
  "query": {
    "bool": {
      "must": [
        {"term": {"OA": "DT-AIRCEL"}}
      ]
    }
  },
  "aggs": {
    "groupby_numbers": {
      "terms": {
        "field": "DA"
      }
    }
  }
}

```

```auto
"groupby_numbers": {
      "doc_count_error_upper_bound": 10,
      "sum_other_doc_count": 3584,
      "buckets": [
        {
          "key": "918760689889",
          "doc_count": 10
        },
        {
          "key": "917502093169",
          "doc_count": 6
        },

```

These quiries are looking Ok. But why the graph showing 8????/ Please help

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [September 7, 2016, 1:52pm UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990/2 "2016-09-07T13:52:11Z")

</div>

Moving this to the Kibana category since this question is about Kibana

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [September 7, 2016, 1:55pm UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990/3 "2016-09-07T13:55:04Z")

</div>

The size relates to the number of terms (i.e. bars) you want to be shown on the chart, not the scale of the y-axis.

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [September 8, 2016, 4:12am UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990/4 "2016-09-08T04:12:20Z")

</div>

@colings86 I know that the size belongs to terms. So if I change the "size" the count should not vary. But its varied. That is the main cause for this post. Please check why its(count in Y-axis) varying while changing the "size"

---

<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 6, 2017, 1:39pm UTC](https://discuss.elastic.co/t/got-a-problem-with-size-in-kibana/59990/5 "2017-07-06T13:39:22Z")

</div>


