# Kibana Discover tab not displaying data for index pattern

**URL:** https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083
**Category:** Kibana
**Created:** [July 14, 2020, 7:58am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083 "2020-07-14T07:58:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Bhanu\_Praveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanu_praveen/32/60395_2.png) [@Bhanu\_Praveen](https://discuss.elastic.co/u/Bhanu_Praveen)
#### Post date: [July 14, 2020, 7:58am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/1 "2020-07-14T07:58:12Z")

</div>

Hello,

My Indices showing 8 documents and created index pattern for the same.

 ![ES_pic1](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6ef76bb130f5bfd3490d9f3c04248333e58f0854.jpeg)

My discover tab was showing data for same indices("hc-gc-2020.07.14") before. I restarted Elastic stack and post that sometimes data is displayed after few hours and sometimes it doesn't display only for that indices. For other Indices, data is displaying as usual.

If i do a api call for that Indices("hc-gc-2020.07.14") as below, output response shows all 8 docs.

GET hc-gc-2020.07.14/\_search

Now sure what is the issue with discover tab. Kindly let me know any solution?

---

<div class="post-metadata">

### Author: ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)
#### Post date: [July 14, 2020, 8:00am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/2 "2020-07-14T08:00:13Z")

</div>

Have you set the right timescale?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b516868f2ecc24a99055ed4a05c62823d1bef9d9.png)

---

<div class="post-metadata">

### Author: ![Bhanu\_Praveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanu_praveen/32/60395_2.png) [@Bhanu\_Praveen](https://discuss.elastic.co/u/Bhanu_Praveen)
#### Post date: [July 14, 2020, 8:03am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/3 "2020-07-14T08:03:30Z")

</div>

Ya, i set for 5 years. But timestamp in log is as below which is not more than 30 days. Same index was displaying earlier with 30days timescale.

```
 <gc-start id="5" type="global" contextid="4" timestamp="2020-06-18T01:17:50.472">
  <mem-info id="6" free="1839615472" total="2147483648" percent="85">
    <mem type="tenure" free="1839615472" total="2147483648" percent="85">
      <mem type="soa" free="1732241904" total="2040110080" percent="84" />
      <mem type="loa" free="107373568" total="107373568" percent="100" />
    </mem>
  </mem-info>
</gc-start>
```

---

<div class="post-metadata">

### Author: ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)
#### Post date: [July 14, 2020, 8:08am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/4 "2020-07-14T08:08:31Z")

</div>

Have you set a timefield?  
What does your index pattern look like? Is there a clock symbol next to the timestamp?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e0c240667afa29a8f663081ffad0a24742adf2f2.png)  
You can also check the Query which kibana uses for discover. See if it works if you use it manually or maybe there is an error.  
You can find the query here:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a7eab192a420ef9a1c742604873a769502ca53e7.png)

---

<div class="post-metadata">

### Author: ![Bhanu\_Praveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanu_praveen/32/60395_2.png) [@Bhanu\_Praveen](https://discuss.elastic.co/u/Bhanu_Praveen)
#### Post date: [July 14, 2020, 9:08am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/5 "2020-07-14T09:08:44Z")

</div>

clock symbol next to timestamp field exists as below:

 ![ES_pic2](https://us1.discourse-cdn.com/elastic/original/3X/0/8/089e1bd58a2e2cf2cc151e240b0aca11d57e23f7.jpeg)

Below is request in discover tab:

 ![ES_pic4](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf0ba33ddcc482eb0f4babfa5f65910b018757f8.jpeg)

If executed request through dev tools, below is the output:

 ![ES_pic3](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb75bf482d2283da9bf4c918bb6fc8f55482ef7f.jpeg)

Still no data displayed.

---

<div class="post-metadata">

### Author: ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)
#### Post date: [July 14, 2020, 9:15am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/6 "2020-07-14T09:15:25Z")

</div>

Please post the code that you executed in the dev tools.  
You can format code with three ` symbols

````auto
``` <---
CODE
``` <----

````

---

<div class="post-metadata">

### Author: ![Bhanu\_Praveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanu_praveen/32/60395_2.png) [@Bhanu\_Praveen](https://discuss.elastic.co/u/Bhanu_Praveen)
#### Post date: [July 14, 2020, 9:17am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/7 "2020-07-14T09:17:33Z")

</div>

Please find the request post which i got from discover inspect request tab:

```
GET /_search?q=message:number&size=0&terminate_after=1
{
  "version": true,
  "size": 500,
  "sort": [
    {
      "@timestamp": {
        "order": "desc",
        "unmapped_type": "boolean"
      }
    }
  ],
  "aggs": {
    "2": {
      "date_histogram": {
        "field": "@timestamp",
        "fixed_interval": "12h",
        "time_zone": "Asia/Calcutta",
        "min_doc_count": 1
      }
    }
  },
  "stored_fields": [
    "*"
  ],
  "script_fields": {},
  "docvalue_fields": [
    {
      "field": "@timestamp",
      "format": "date_time"
    },
    {
      "field": "gcendtimestamp",
      "format": "date_time"
    },
    {
      "field": "gcstarttimestamp",
      "format": "date_time"
    }
  ],
  "_source": {
    "excludes": []
  },
  "query": {
    "bool": {
      "must": [],
      "filter": [
        {
          "match_all": {}
        },
        {
          "range": {
            "@timestamp": {
              "gte": "2020-06-14T09:02:14.309Z",
              "lte": "2020-07-14T09:02:14.309Z",
              "format": "strict_date_optional_time"
            }
          }
        }
      ],
      "should": [],
      "must_not": []
    }
  },
  "highlight": {
    "pre_tags": [
      "@kibana-highlighted-field@"
    ],
    "post_tags": [
      "@/kibana-highlighted-field@"
    ],
    "fields": {
      "*": {}
    },
    "fragment_size": 2147483647
  }
}
```

---

<div class="post-metadata">

### Author: ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)
#### Post date: [July 14, 2020, 9:20am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/8 "2020-07-14T09:20:19Z")

</div>

> [@Bhanu\_Praveen](#):
>
> ```auto
> "query": {
> "bool": {
> "must": [],
> "filter": [
> {
> "match_all": {}
> },
> {
> "range": {
> "@timestamp": {
> "gte": "2020-06-14T09:02:14.309Z",
> "lte": "2020-07-14T09:02:14.309Z",
> "format": "strict_date_optional_time"
> }
> }
> }
> ],
> "should": [],
> "must_not": []
> }
> }
> 
> ```

Here is the query that is executed by kibana. It is looking for all events between "gte": "2020-06-14T09:02:14.309Z" and "lte": "2020-07-14T09:02:14.309Z". Personally I don't see an error if your data is in between those fields. I cant see why it doesn't work.

---

<div class="post-metadata">

### Author: ![Bhanu\_Praveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanu_praveen/32/60395_2.png) [@Bhanu\_Praveen](https://discuss.elastic.co/u/Bhanu_Praveen)
#### Post date: [July 14, 2020, 9:23am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/9 "2020-07-14T09:23:52Z")

</div>

If i just do a search api call for the indices("hc-gc-2020.07.14") as below:

GET /hc-gc-2020.07.14/\_search

i got all 8 docs in response:

```
    {
  "took" : 0,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 8,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "hc-gc-2020.07.14",
        "_type" : "_doc",
        "_id" : "J-UsTXMBMw5nJtg8zPuG",
        "_score" : 1.0,
        "_source" : {
          "gcpausetimems" : 101.685,
          "gcstarttimestamp" : "2020-06-18T01:17:50.472",
          "tags" : [
            "beats_input_codec_plain_applied",
            "_grokparsefailure"
          ],
          "heapusedaftergcmb" : 57.201,
          "fields" : { },
          "allocatedmemorymb" : 2048.0,
          "jvmdescription" : "Ibm",
          "gcendtimestamp" : "2020-06-18T01:17:50.574",
          "log" : {
            "offset" : 5872,
            "flags" : [
              "multiline"
            ],
            "file" : {
              "path" : "/opt/data/gc/Ibm_GC_Log.log"
            }
          },
          "reclaimedmemaftergcmb" : 236.405,
          "host" : {
            "architecture" : "x86_64",
            "name" : "lin025",
            "id" : "433c9d2c1a374bdfae6c429be7641eba",
            "containerized" : false,
            "mac" : [
              "00:50:56:92:71:1c",
              "52:54:00:a7:ba:a9",
              "52:54:00:a7:ba:a9",
              "02:42:4c:d8:52:d6",
              "02:42:38:c9:e2:6c",
              "7e:c5:5c:f3:9e:60",
              "a6:bb:9c:f4:31:d1",
              "f6:70:e9:76:5f:f7"
            ],
            "ip" : [
              "192.168.1.144",
              "fe80::250:56ff:fe92:711c",
              "192.168.122.1",
              "172.17.0.1",
              "fe80::42:4cff:fed8:52d6",
              "192.168.160.1",
              "fe80::42:38ff:fec9:e26c",
              "fe80::7cc5:5cff:fef3:9e60",
              "fe80::a4bb:9cff:fef4:31d1",
              "fe80::f470:e9ff:fe76:5ff7"
            ],
            "hostname" : "lin025",
            "os" : {
              "platform" : "centos",
              "name" : "CentOS Linux",
              "codename" : "Core",
              "family" : "redhat",
              "kernel" : "3.10.0-957.el7.x86_64",
              "version" : "7 (Core)"
            }
          },
          "gcstartid" : "5",
          "ecs" : {
            "version" : "1.5.0"
          },
          "input" : {
            "type" : "log"
          },
          "heapusedbeforegcmb" : 293.606,
          "peakmemorymb" : 293.606,
          "gctype" : "global",
          "gccause" : "af",
          "@timestamp" : "2020-07-14T11:53:42.219Z",
          "agent" : {
            "id" : "0b5f5587-a0d3-4ae3-ae4e-9a15ffec891d",
            "name" : "lin025",
            "ephemeral_id" : "f1436e6b-9a65-4925-9b1a-a1d19c6260c0",
            "hostname" : "lin025",
            "type" : "filebeat",
            "version" : "7.8.0"
          },
          "@version" : "1"
      }}

```

My log file data is as below which falls between the specified timestamp in query:

```
<gc-start id="5" type="global" contextid="4" timestamp="2020-06-18T01:17:50.472">
  <mem-info id="6" free="1839615472" total="2147483648" percent="85">
    <mem type="tenure" free="1839615472" total="2147483648" percent="85">
      <mem type="soa" free="1732241904" total="2040110080" percent="84" />
      <mem type="loa" free="107373568" total="107373568" percent="100" />
    </mem>
  </mem-info>
</gc-start>
```

---

<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: [August 11, 2020, 9:23am UTC](https://discuss.elastic.co/t/kibana-discover-tab-not-displaying-data-for-index-pattern/241083/10 "2020-08-11T09:23:59Z")

</div>

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