Kibana-Metric not displaying exact count

Hello Team

I indexed the log data and overall, I have 43851 documents

you can see it here:

GET index_name/_count

output:   {
  "count": 43851,
  "_shards": {
    "total": 5,
    "successful": 5,
    "skipped": 0,
    "failed": 0
  }
}

But If I visualise this in Metric:

It's showing 9,705 instead of 43,851. not sure what is wrong?

This is the request body in Metric visualisation:

{
  "size": 0,
  "_source": {
    "excludes": []
  },
  "aggs": {},
  "stored_fields": [
    "*"
  ],
  "script_fields": {},
  "docvalue_fields": [
    "@timestamp"
  ],
  "query": {
    "bool": {
      "must": [
        {
          "match_all": {}
        },
        {
          "range": {
            "@timestamp": {
              "gte": 1519452004812,
              "lte": 1524636004812,
              "format": "epoch_millis"
            }
          }
        }
      ],
      "filter": [],
      "should": [],
      "must_not": []
    }
  }
}

Please do help?

Thanks for your time as always :slight_smile:

I got it. Silly Mistake it's. I've selected the time range. that's the reason why it's setting range filter in request body.

Anyway, Now it's fine Thank you much for your time.

2 Likes

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