# Help With Validating This Heartbeat Config

**URL:** <https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874>\
**Category:** Beats\
**Tags:** docker, heartbeat\
**Created:** [March 20, 2021, 7:14am UTC](https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874 "2021-03-20T07:14:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LongBeachHXC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/longbeachhxc/32/85846_2.png) [@LongBeachHXC](https://discuss.elastic.co/u/LongBeachHXC)\
**Post date:** [March 20, 2021, 7:14am UTC](https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874/1 "2021-03-20T07:14:14Z")

</div>

I am having a tough time starting a heartbeat container. I am bind mounting the config file into the path /usr/share/heartbeat/heartbeat.yml. My config file is below. I'm sure this is something simple but I haven't been able to find the error. I have even used a couple different yaml validators and it says the syntax is good. Some assistance would be greatly appreciated. Thank you.

```auto
logs

Attaching to heartbeat
heartbeat | Exiting: error loading config file: missing '}' parsing splice accessing config (source:'heartbeat.yml')
heartbeat exited with code 1

```

```auto
---
heartbeat.monitors:
  - type: "http"
    schedule: '@every 5s'
    urls:
      - "https://${CONTAINER_ELASTIC_SEARCH}:{PORT_ELASTIC_SEARCH}"
      - "https://${CONTAINER_KIBANA}:${KIBANA_PORT}"
  - type: "icmp"
    schedule: '@every 5s'
    hosts:
      - "${CONTAINER_ELASTIC_SEARCH}"
      - "${CONTAINER_KIBANA}"

heartbeat.autodiscover:
  providers:
    - type: "docker"
      templates:
        - condition:
            contains:
              docker.container.image: "redis"
          config:
            - type: "tcp"
              hosts: 
                - "${data.host}:${data.port}"
              schedule: "@every 1s"
              timeout: "1s"
        - condition:
            contains:
              docker.container.images: dotmusic:nginx
          config:
            - type: "http"
              schedule: "@every 5s"
              urls: 
                - "https://${data.host}:${data.port}" 

processors:
  - add_docker_metadata: ~

output.elasticsearch:
  hosts: 
    - '${CONTAINER_ELASTIC_SEARCH}:PORT_ELASTIC_SEARCH}'
  protocol: "https"
  ssl.certificate_authorities: 
    - '${CERTS_DIR}/ca/ca.crt'
  ssl.certiifcate: '${CERTS_DIR}/${CONTAINER_HEARTBEAT}/${CONTAINER_HEARTBEAT}.crt'
  ssl.key: '${CERTS_DIR}/${CONTAINER_HEARTBEAT}/${CONTAINER_HEARTBEAT.key'
  ssl.enabled: true
  ssl.verification_mode: "certiifcate"

setup.kibana:
  host: "${CONTAINER_KIBANA}:${PORT_KIBANA}"
  protocol: "https"
  ssl.enabled: true
  ssl.verification_mode: "certificate"
  ssl.certificate_authorities: 
    - '${CERTS_DIR}/ca/ca.crt'
  ssl.certiifcate: '${CERTS_DIR}/${CONTAINER_HEARTBEAT}/${CONTAINER_HEARTBEAT}.crt'
  ssl.key: '${CERTS_DIR}/${CONTAINER_HEARTBEAT}/${CONTAINER_HEARTBEAT.key'

```

---

<div class="post-metadata">

**Author:** ![LongBeachHXC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/longbeachhxc/32/85846_2.png) [@LongBeachHXC](https://discuss.elastic.co/u/LongBeachHXC)\
**Post date:** [March 20, 2021, 7:17am UTC](https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874/2 "2021-03-20T07:17:56Z")

</div>

I found it...only after I submitted this and I was able to see it on a different background.

Both ssl.key values are missing the last curly brace.

---

<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:** [March 22, 2021, 1:53am UTC](https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874/3 "2021-03-22T01:53:14Z")

</div>

That's a tricky one, glad you found it, definitely hard to see 🙂

---

<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:** [April 19, 2021, 3:53am UTC](https://discuss.elastic.co/t/help-with-validating-this-heartbeat-config/267874/4 "2021-04-19T03:53:22Z")

</div>

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