# (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:Examplefrequencyrule
# (Required) # Type of alert. # the frequency rule type alerts when num_events events occur with timeframe time type:frequency
# (Required) # Index to search, wildcard supported index:metricbeat-*
# (Required, frequency specific) # Alert when this many documents matching the query occur within a timeframe num_events:5
# (Required, frequency specific) # num_events must occur within this amount of time to trigger an alert timeframe: hours:4
# (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_string: query:"system.process.cpu.total.pct: >10%"//field支持嵌套
smtp_host:smtp.163.com smtp_port:25 smtp_auth_file:/opt/elastalert/smtp_auth.yaml #回复给那个邮箱 email_reply_to:xxx@163.com ##从哪个邮箱发送 from_addr:xxx@163.com # (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: -"yyy@qq.com"
smtp_host: smtp.163.com smtp_port: 25 smtp_auth_file: /opt/elastalert/smtp_auth.yaml #回复给那个邮箱 email_reply_to: xxx@163.com ##从哪个邮箱发送 from_addr: xxx@163.com # (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: - "yyy@qq.com"