# Heartbeat keeps getting restarted

**URL:** https://discuss.elastic.co/t/heartbeat-keeps-getting-restarted/226446
**Category:** Beats
**Tags:** heartbeat
**Created:** [April 3, 2020, 5:28pm UTC](https://discuss.elastic.co/t/heartbeat-keeps-getting-restarted/226446 "2020-04-03T17:28:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hanjukim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanjukim/32/64223_2.png) [@hanjukim](https://discuss.elastic.co/u/hanjukim)
#### Post date: [April 3, 2020, 5:28pm UTC](https://discuss.elastic.co/t/heartbeat-keeps-getting-restarted/226446/1 "2020-04-03T17:28:03Z")

</div>

I am using docker image elastic/heartbeat:6.8.8, and container keeps getting restarted.  
**Full log**  
[https://pastebin.com/raw/Aag5Q3eL](https://pastebin.com/raw/Aag5Q3eL)

**Configuration**

```auto
############################# Heartbeat ######################################
heartbeat.config.monitors:
  # Directory + glob pattern to search for configuration files
  path: ${path.config}/monitors.d/*.yml
  reload.enabled: true

#============================== Output monitoring =====================================
output.elasticsearch:
  hosts: ["elasticsearch:9200"]
  index: "heartbeat-%{[beat.version]}-%{+yyyy}"
#============================== Kibana =====================================
setup:
  kibana.host: "kibana:5601"
  kibana.protocol: "http"

#==================== Elasticsearch template setting ==========================
setup.template.enabled: true
setup.template.name: "heartbeat"
setup.template.pattern: "heartbeat-*"
setup.template.overwrite: true

setup.template.settings:
  index:
    number_of_shards: 1
    number_of_replicas: 1
    codec: best_compression
    number_of_routing_shards: 30

#============================== X-Pack monitoring =====================================
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.url: ["http://elasticsearch:9200"]

#================================ HTTP Endpoint ======================================
# Defines if the HTTP endpoint is enabled.
http.enabled: true

# The HTTP endpoint will bind to this hostname or IP address. It is recommended to use only localhost.
http.host: localhost

# Port on which the HTTP endpoint will bind. Default is 5066.
http.port: 5066

#================================ Logging =====================================
logging.level: warning

```

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [April 14, 2020, 1:47am UTC](https://discuss.elastic.co/t/heartbeat-keeps-getting-restarted/226446/3 "2020-04-14T01:47:41Z")

</div>

Apologies for the delay here.

There's a known bug with that version of heartbeat that was just patched (it's not present in 7.x versions) where multiple ports, when used with the `tcp` monitor type would cause a hard crash. I can't tell if that's happening here because your monitor config is not included.

If that's what the cause is, the work around is to have a separate config line per port (single value per monitor).

---

<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: [May 12, 2020, 1:47am UTC](https://discuss.elastic.co/t/heartbeat-keeps-getting-restarted/226446/4 "2020-05-12T01:47:44Z")

</div>

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