# There is no data to display

**URL:** https://discuss.elastic.co/t/there-is-no-data-to-display/167664
**Category:** Metrics
**Created:** [February 8, 2019, 4:15pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664 "2019-02-08T16:15:28Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [February 8, 2019, 4:15pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/1 "2019-02-08T16:15:28Z")

</div>

Hello World!

I'm trying out Infrastructure (infra) Kibana' app, yet getting following message:

> There is no data to display.

`metricbeat-*` exists with some data in it (mostly from system module)

Please advise.

---

<div class="post-metadata">

### Author: ![skh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skh/32/38637_2.png) [@skh](https://discuss.elastic.co/u/skh)
#### Post date: [February 8, 2019, 4:33pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/2 "2019-02-08T16:33:14Z")

</div>

Hello @alexus 🙂

How are you sending your data to elasticsearch, with metricbeat or through logstash? The UI relies on the correct index template to be used for the `metricbeat-*` indices, which should work out of the box when you use metricbeat, but might need some extra setup when you use logstash.

In detail, we rely on certain fields containing strings being of type `keyword` (not `text`). To check if that could be the cause of your problem, could you give us a sample of the output when querying

`/metricbeat-*/_mapping/doc/field/beat.hostname`

on your Elasticsearch API?

---

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [February 8, 2019, 5:26pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/3 "2019-02-08T17:26:03Z")

</div>

data is being shipped by `metricbeat` directly into `elasticsearch` and template `metricbeat-6.6.0` is in place.

```
GET /metricbeat-*/_mapping/doc/field/beat.hostname
{
  "metricbeat-6.6.0-2019.02.08" : {
    "mappings" : {
      "doc" : {
        "beat.hostname" : {
          "full_name" : "beat.hostname",
          "mapping" : {
            "hostname" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        }
      }
    }
  }
}
```

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [February 8, 2019, 6:12pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/4 "2019-02-08T18:12:30Z")

</div>

Looks like the index templates are not installed correctly for `metricbeat-*`. Are you sending Metricbeat through Logstash or Kafka or some other intermediary? The only reason I ask is when Metricbeat starts sending data it creates an index template for `metricbeat-*`. You might have to manually run `metricbeat setup` before you start indexing through an intermediary.

This link to our documentation goes into detail... [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html)

---

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [February 8, 2019, 7:54pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/5 "2019-02-08T19:54:54Z")

</div>

As I mentioned in my previous comment, metricbeat ships events directly into elasticsearch and template is there as well:

```
# curl --silent --request GET $ELASTICSEARCH_URI/_cat/templates/metricbeat-*
metricbeat-6.6.0 [metricbeat-6.6.0-*] 1 
#
```

---

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [February 8, 2019, 7:56pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/6 "2019-02-08T19:56:38Z")

</div>

I went to `Kibana` -\> `Management` -\> `Saved Objects` and removed everything related to `*beat`, followed by deleting relevant templates as well, then I re-run `setup` and now it's seems to be working fine)

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [February 8, 2019, 10:01pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/7 "2019-02-08T22:01:02Z")

</div>

Awesome! I'm glad we could get you pointed in the right direction.

---

<div class="post-metadata">

### Author: ![joedissmeyer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joedissmeyer/32/26163_2.png) [@joedissmeyer](https://discuss.elastic.co/u/joedissmeyer)
#### Post date: [March 8, 2019, 3:04pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/8 "2019-03-08T15:04:04Z")

</div>

I had the exact same issue. Lots of metricbeat data is in our cluster and the kibana index mapping metricbeat-\* exists. The Infra UI waffle map worked just fine in v6.5.4 and previous versions but after upgrading to v6.6.1 the Infra UI would not display any data for me.

To fix, I needed to manually add in a setting override in my /etc/kibana/kibana.yml configuration file:

```auto
xpack.infra.sources.default.fields.host: 'beat.hostname'

```

Once I added in this setting and restarted the Kibana instances the Infra UI waffle map appeared showing metricbeat data as expected.

I wonder if the reason why this is occurring is because we still have a few different versions of Metricbeat in use in our fleet (v6.5.4, v6.5.2, v6.4, and so on)? Overriding the default host field in the kibana.yml seems to correct whatever the root cause is.

I'll report this issue in a support ticket to my rep 🙂

---

<div class="post-metadata">

### Author: ![Richard145](https://avatars.discourse-cdn.com/v4/letter/r/bbe5ce/32.png) [@Richard145](https://discuss.elastic.co/u/Richard145)
#### Post date: [March 28, 2019, 9:51am UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/9 "2019-03-28T09:51:39Z")

</div>

The problem here is that the index templates aren't installed correctly in 'metricbeat-\*'.Try to correct it and u should get this solution[.](https://www.myschoolbucks.xyz/)

---

<div class="post-metadata">

### Author: ![aqiank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqiank/32/39723_2.png) [@aqiank](https://discuss.elastic.co/u/aqiank)
#### Post date: [April 17, 2019, 8:36am UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/10 "2019-04-17T08:36:39Z")

</div>

I have similar problem again after I upgrade to 7.0.0. I can see the metricbeat stats on the main Infrastructure UI but when I click View metrics, it doesn't show anything. Is there any way to debug this? Thanks!

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [April 18, 2019, 2:59pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/11 "2019-04-18T14:59:34Z")

</div>

Do you know what version your data is? If it's older than 6.7 you are probably missing the `event.dataset` field. You can check this by running the following query in the dev console:

```auto
POST metricbeat-*/_search
{
  "size": 0,
  "aggs": {
    "events": {
      "terms": {
        "field": "event.dataset",
        "size": 10
      }
    }
  }
}

```

The aggregation returned should have document counts for multiple `event.dataset` terms. If that field doesn't exist then the Metric detail page won't display. One option would be to re-index the data and combine the `metricset.module` and `metricset.name` fields to create a new `event.dataset` field (make sure the type is set to `keyword` in the mappings). The format should look like `{metricset.module}.{metricset.name}`, for example when `metricset.module` equals `system` and `metricset.name` equals `cpu`, the `event.dataset` field would be set to `system.cpu`.

For your reference and future troubleshooting, we have also documented the required fields for the Infrastructure UI at [https://www.elastic.co/guide/en/infrastructure/guide/current/install-infrastructure-monitoring.html](https://www.elastic.co/guide/en/infrastructure/guide/current/install-infrastructure-monitoring.html)

---

<div class="post-metadata">

### Author: ![aqiank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqiank/32/39723_2.png) [@aqiank](https://discuss.elastic.co/u/aqiank)
#### Post date: [April 19, 2019, 4:33am UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/12 "2019-04-19T04:33:09Z")

</div>

Hi @simianhacker, thanks for the response. I ran it and got the following result:

```auto
{
  "took" : 7291,
  "timed_out" : false,
  "_shards" : {
    "total" : 82,
    "successful" : 82,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 10000,
      "relation" : "gte"
    },
    "max_score" : null,
    "hits" : []
  },
  "aggregations" : {
    "events" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 46714,
      "buckets" : [
        {
          "key" : "system.process",
          "doc_count" : 26750955
        },
        {
          "key" : "system.network",
          "doc_count" : 12137510
        },
        {
          "key" : "system.load",
          "doc_count" : 3379313
        },
        {
          "key" : "system.cpu",
          "doc_count" : 3379286
        },
        {
          "key" : "system.memory",
          "doc_count" : 3379218
        },
        {
          "key" : "system.process_summary",
          "doc_count" : 3355753
        },
        {
          "key" : "system.filesystem",
          "doc_count" : 1836354
        },
        {
          "key" : "system.socket_summary",
          "doc_count" : 870837
        },
        {
          "key" : "system.fsstat",
          "doc_count" : 563302
        },
        {
          "key" : "system.uptime",
          "doc_count" : 37592
        }
      ]
    }
  }
}

```

Does that mean that the field exist?

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [April 19, 2019, 2:41pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/13 "2019-04-19T14:41:31Z")

</div>

Can you run the same query but filter for the host you're trying to view?

```auto
POST metricbeat-*/_search
{
  "size": 0,
  "query": {
    "match": {
      "beat.hostname": "HOST_NAME_GOES_HERE"
    }
  }, 
  "aggs": {
    "events": {
      "terms": {
        "field": "event.dataset",
        "size": 10
      }
    }
  }
}

```

Also is there a way to post a REDACTED screen shot (with the sensitive data blurred out)? I have some 6.5 data that I added the `event.dataset` field to that is working on my laptop, we should be able to get this working for you.

---

<div class="post-metadata">

### Author: ![aqiank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqiank/32/39723_2.png) [@aqiank](https://discuss.elastic.co/u/aqiank)
#### Post date: [April 20, 2019, 5:07pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/14 "2019-04-20T17:07:54Z")

</div>

Hi @simianhacker, I have run that query and here is the result:

```auto
 {
  "took" : 5950,
  "timed_out" : false,
  "_shards" : {
    "total" : 82,
    "successful" : 82,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 10000,
      "relation" : "gte"
    },
    "max_score" : null,
    "hits" : []
  },
  "aggregations" : {
    "events" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 33302,
      "buckets" : [
        {
          "key" : "system.process",
          "doc_count" : 1820326
        },
        {
          "key" : "system.network",
          "doc_count" : 617868
        },
        {
          "key" : "system.cpu",
          "doc_count" : 308935
        },
        {
          "key" : "system.load",
          "doc_count" : 308935
        },
        {
          "key" : "system.memory",
          "doc_count" : 308934
        },
        {
          "key" : "system.process_summary",
          "doc_count" : 279075
        },
        {
          "key" : "system.socket_summary",
          "doc_count" : 174134
        },
        {
          "key" : "system.filesystem",
          "doc_count" : 102992
        },
        {
          "key" : "system.fsstat",
          "doc_count" : 51495
        },
        {
          "key" : "system.process.summary",
          "doc_count" : 29859
        }
      ]
    }
  }
}

```

Does that mean it should be working?

I suppose I don't need to blur anything as it doesn't have any sensitive data.

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [May 3, 2019, 7:56pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/15 "2019-05-03T19:56:54Z")

</div>

You seems to have everything in place. I'm not sure why this isn't working. Let me think about it some more and see if I can figure this one out.

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [May 3, 2019, 9:49pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/16 "2019-05-03T21:49:42Z")

</div>

@aqiank Can you open the developer console (in Chrome) and let me know if there are any errors?

---

<div class="post-metadata">

### Author: ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)
#### Post date: [May 3, 2019, 9:53pm UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/17 "2019-05-03T21:53:38Z")

</div>

I wonder if it's related to this issue? [https://github.com/elastic/kibana/issues/36061#issuecomment-489243870](https://github.com/elastic/kibana/issues/36061#issuecomment-489243870)

---

<div class="post-metadata">

### Author: ![aqiank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqiank/32/39723_2.png) [@aqiank](https://discuss.elastic.co/u/aqiank)
#### Post date: [May 6, 2019, 8:48am UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/18 "2019-05-06T08:48:41Z")

</div>

Hi @simianhacker,

I have found the following errors in Chrome:

```auto
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-4MnCvXbChcwkyN2p'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.

bootstrap.js:10 ^ A single error about an inline script not firing due to content security policy is expected!

```

---

<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: [June 3, 2019, 8:48am UTC](https://discuss.elastic.co/t/there-is-no-data-to-display/167664/19 "2019-06-03T08:48:42Z")

</div>

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