Anomaly alerting

{
  "script": {
    "script": "payload.hits.total > 0"
  },
  "anomaly": {
    "field_to_check": "mos"
  }
}
ANOMALY ALERT on index: mos-* !
{
  "script": {
    "script": "payload.hits.total > 10000"
  },
  "anomaly": {
    "field_to_check": "http_status",
    "normal_values": [
      200
    ]
  }
}