Heartbeat not starting when second monitor is added

Hi I'm new to ELK stack . Im Using ELK 5.2 and Heartbeat Version 5.2.2.

After changing the heartbeat.yml to following , i couldn't start heartbeat service. So i tried validating heartbeat.yml and i got error "Exiting: error loading config file: yaml: line 25: mapping values are not allowed in this context"

what am i doing wrong here ?

- type: http

  # List or urls to query
  urls: ["http://localhost:9200"]

  # Configure task schedule
  schedule: '@every 10s'

  # Total test connection and data exchange timeout
  #timeout: 16s
- type: tcp
    hosts: ["localhost:8080"]
    schedule: '@every 10s'
        mode : any

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.

Can you post the entire config file? Feel free to use something like gist/pastebin/etc.

Sure Mark.

However after changing the format to below with out any spaces, it started working.

- type: tcp
  hosts: ["x.x.x.x:80"]
  schedule: '@every 10s'
  mode: any

That's right, it's a YAML list of maps. Yaml can be quite annoying some times.

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