我正在努力使用elastalert来提醒获取特定性质或频率的数据。 请参阅我的弹性规则.yaml文件。
# Alert when the rate of events exceeds a threshold
# (Optional)
# Elasticsearch host
es_host: localhost
# (Optional)
# Elasticsearch port
es_port: 9200
# (OptionaL) Connect with SSL to Elasticsearch
#use_ssl: True
# (Optional) basic-auth username and password for Elasticsearch
#es_username: someusername
#es_password: somepassword
# (Required)
# Rule name, must be unique
name: my_rule
# (Required)
# Type of alert.
# the frequency rule type alerts when num_events events occur with timeframe time
type: any
#frequency
# (Required)
# Index to search, wildcard supported
index: shakes*
# (Required, frequency specific)
# Alert when this many documents matching the query occur within a timeframe
num_events: 1
# (Required, frequency specific)
# num_events must occur within this amount of time to trigger an alert
timeframe:
seconds: 15
# (Required)
# A list of Elasticsearch filters used for find events
# These filters are joined with AND and nested in a filtered query
# For more info: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html
filter: []
#- query:
# query_string:
# query: "play_name: Henry IV"
# (Required)
# The alert is use when a match is found
alert:
- "email"
# (required, email specific)
# a list of email addresses to send alerts to
email:
- "olawi@vg.com"
点击量应该算上。我没有点击。现在,我看到了一个类似的帖子,其中dev被要求调整时间,因为elastalert根据浏览器的时间工作。我调整了系统时间以匹配索引中文档的时间戳,但仍然没有给出该时间段的任何命中。
感谢。
答案 0 :(得分:0)
Elastic Search,Kibana和ELastAlert默认在UTC上工作。因此,ElastAlert将查询您的ES基础UTC。请您遵循以下几点。
谢谢