Question, why not use our alerting feature for this? It's purpose built for this exact use case. I've included a screenshot of alerts in the logs app below:
Not the intent of the question, but I appreciate the suggestion - which gears an opportunity for "use-case-end-goal".
To reiterate the challenge, what's the proper formatting of HTTP GET w/ JSON BODY with Heartbeat HTTP monitor? Must it be url encoded or back-ticked or escape-char'd somehow ?
Reasons for using heartbeat include the ability to
view all up/down in a single dashboard,
probe from multiple locations/to multiple locations
run 'processors' on the data as it is consumed
modify the thresholds of up/down from the .yml structure
etc, etc
Sorry, to answer the question of handling the body, You'll probably want to use a YAML HereDoc in the literal style:
body: |
{
"some": "json"
}
I will say that It does sound to me like the Logs app may make more sense than heartbeat for the use case you've shown, which is monitoring logstash data, but what you're showing with heartbeat should technically function.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.