'How do you set up Kibana alerts?

I have some documents in my index and I wanna get notified if in any document a specific field is set to false.

Can I do this whitin Kibana alerts, or am I just better off running an exists/boolean query to check for what I need that runs everyday?

I have this query:

GET my-index/_count
{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "product.is_visible": {
              "value": "false"
            }
          }
        }
      ]
    }
  }
}

I want to get notified if this query ever returns more than 0 rows. What would be a good solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source