简体   繁体   English

JavaAPI在elasticsearch中使用警报?

[英]using alert in elasticsearch with java API?

I have data written into Elasticsearch in near real time and i want to be alerted when that data matches certain patterns, ElastAlert is the tool for doing this. 我将数据几乎实时地写入Elasticsearch,并且当数据与特定模式匹配时,我想得到提醒,ElastAlert是执行此操作的工具。 However i want to use alert with java API, it's possible ? 但是我想将警报与Java API一起使用,这可能吗?

To implement Alert when data match specific queries you should use the Percolator. 要在数据与特定查询匹配时实施警报,您应该使用过滤器。

It allows you to store some queries and you can either alert or tag the document as you please. 它允许您存储一些查询,并且可以根据需要警报或标记文档。

SEE : https://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html 查看: https : //www.elastic.co/guide/zh-CN/elasticsearch/reference/current/search-percolate.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM