Skip to content

Instantly share code, notes, and snippets.

@jocooler
jocooler / sites_down_alert_email.html
Created November 14, 2018 16:35
Elastalert Generated Email for the sites down rule.
<!--see https://gist.github.com/jocooler/4312537eab4f6053c6d0bf45a1925065 -->
<div>
<h3>ElastAlert Notification: Sites Down</h3>
<h4>Site pings returned down more than once in 15 minutes.</h4>
<p>A total of 2 down sites were detected. For more information, consult the <a href="http://kibana_server#/dashboard/f3e771c0-eb19-11e6-be20-559646f8b9ba?_g=%28refreshInterval%3A%28display%3AOff%2Csection%3A0%2Cvalue%3A0%29%2Ctime%3A%28from%3A%272018-11-08T09%3A06%3A28.210Z%27%2Cmode%3Aabsolute%2Cto%3A%272018-11-08T09%3A36%3A28.210Z%27%29%29" target="_blank">Dashboard</a>.</p>
<h4>Trigger events:</h4>
<table style="border-collapse:collapse">
<thead>
<tr>
@jocooler
jocooler / sites_down.yaml
Created November 14, 2018 16:28
YAML rule for elastalert and heartbeat site monitoring.
es_host: your_host
es_port: your_port
name: Sites Down
description: Site pings returned down more than once in 15 minutes.
type: frequency
index: heartbeat-*
num_events: 2
timeframe:
minutes: 15
filter: