What is the best way to create alerts in ElasticSearch ? I would like to create alerts and get notified via mail if it crosses the threshold. I am using Elastic Stack 7.9.0
For that kind of use case, the best way is to use the new Alerting framework that went GA with 7.11 and was released earlier this week (Feb 10th, 2021).
It is also available in 7.9 as it was first released in beta in 7.7. Try it out.
It is worth noting, though, that this feature is not available in the OSS version, but only with the Free Basic License onwards.