# Uptime UI (and Discover) not showing any data in Heartbeat

**URL:** https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717
**Category:** Beats
**Tags:** heartbeat
**Created:** [February 11, 2020, 7:17am UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717 "2020-02-11T07:17:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shalvah.deimos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalvah.deimos/32/46322_2.png) [@shalvah.deimos](https://discuss.elastic.co/u/shalvah.deimos)
#### Post date: [February 11, 2020, 7:17am UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717/1 "2020-02-11T07:17:48Z")

</div>

**What I've done** :

- Set up a Docker container running Heartbeat and sending to a remote ES cluster
- Configured monitors

**What should be happening**  
I should see my Heartbeat monitors in the Uptime UI

**What is happening**  
Uptime UI shows error "There was a problem retrieving the index pattern" on load, then shows no monitors. No data in Discover either, both with `UptimeIndexPattern` and variations of `heatbeat*`.

My heartbeat.yml:

```auto
output:
  elasticsearch:
    hosts: ['http://172.24.102.168:9200','http://172.24.102.169:9200']
    username: '${ELASTICSEARCH_USERNAME:}'
    password: '${ELASTICSEARCH_PASSWORD:}'
setup:
  kibana:
    host: '${KIBANA_URL:}'
  dashboards:
    enabled: false
  template:
    settings:
      index:
        number_of_shards: 1
        codec: best_compression
heartbeat:
  config:
    monitors:
      path: '${path.config}/monitors.d/*'
      reload:
        enabled: true
        period: 1m
processors:
  - add_observer_metadata: {}
  - add_cloud_metadata: {}
  - add_host_metadata: {}
  - add_kubernetes_metadata: {}

```

Monitors:

```auto
- id: sample-github
  type: http
  name: GitHub
  schedule: '@every 1m'
  hosts:
    - github.com

- id: appserv
  type: http
  name: appserv
  schedule: '@every 1m'
  hosts:
    - http://172.24.102.222:9000/flash-http-services
    - http://172.24.102.211:9000/flash-http-services
    - http://172.24.102.205:9000/flash-http-services

```

Versions:

- Heartbeat: 7.5.2 (also tried with 7.5.1)
- Kibana: 7.5.1
- Elasticsearch: 7.5.1

Uptime UI:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/9/e917dc991f5f7667a7ffbd587f9ceca2cccdebee.png)

Discover:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74d41ad73111b9ba26eabb58f67bc8da12449492.png)

Actual index data:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d726676bcfbee0267252b29339a4df593ccc1050.png)

**What I've tried:**

- The docs (bottom of [this page](https://www.elastic.co/guide/en/uptime/7.5/install-heartbeat.html)) said to use an alias to heartbeat-8\* (can someone explain why Stack version 7.x is using an 8 index pattern???), so I tried creating an alias. I've tried all of the following and the aliases were created, but Uptime and Discover still refused to work:

```auto
{ "add" : { "index" : "heartbeat-*", "alias" : "heartbeat-8*" } } // Tried this first, but it got rejected because * is not allowed; the docs were misleading
{ "add" : { "index" : "heartbeat-*", "alias" : "heartbeat-8" } }
{ "add" : { "index" : "heartbeat-*", "alias" : "UptimeIndexPattern" } }

```

- Tried stopping heartbeat, deleting all heartbeat indices, index templates and index patterns and starting again
- Tried deleting the UptimeIndexPattern and giving my heartbeat-\* index the ID heartbeat-8\*

The most perplexing fact is Discover not working. I can get that Uptime might be broken, but Discover just falls over too.

Please, somebody help me. Setting up Heartbeat used to be the easiest part of the entire Elastic Stack. Now for some reason it's broken, and it's driving me crazy.

---

<div class="post-metadata">

### Author: ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)
#### Post date: [February 20, 2020, 11:16am UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717/2 "2020-02-20T11:16:07Z")

</div>

Sorry that you are facing this issue. We resolved most of index pattern issues in 7.6, would it be possible for you to upgrade? Otherwise we can dig deeper to resolve this issue.

Another customer was facing this issue as well , you can read about it here [There was an error retrieving the index pattern](https://discuss.elastic.co/t/there-was-an-error-retrieving-the-index-pattern/218610)

---

<div class="post-metadata">

### Author: ![shalvah.deimos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalvah.deimos/32/46322_2.png) [@shalvah.deimos](https://discuss.elastic.co/u/shalvah.deimos)
#### Post date: [February 20, 2020, 1:06pm UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717/3 "2020-02-20T13:06:07Z")

</div>

I'm not in control of the server components, so I can't promise an upgrade for them, but I'll try to push for it. I can try again with 7.6 for Heartbeat, but I don't think that will make a difference...?🤔

---

<div class="post-metadata">

### Author: ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)
#### Post date: [February 20, 2020, 1:53pm UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717/4 "2020-02-20T13:53:21Z")

</div>

We have removed usage of custom index pattern in 7.6, we are now using dynamic index pattern values in kuery bar. That custom index pattern wasn't working in discover and lens, now if you will create index pattern yourself and use it in discover, it will work.

---

<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: [March 19, 2020, 1:53pm UTC](https://discuss.elastic.co/t/uptime-ui-and-discover-not-showing-any-data-in-heartbeat/218717/5 "2020-03-19T13:53:23Z")

</div>

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