Last active
October 31, 2019 18:59
-
-
Save armiiller/25411d555b71ad526220949430240ae4 to your computer and use it in GitHub Desktop.
ElastAlert/PagerTree Sample Rule Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alert when the rate of events exceeds a threshold | |
# (Optional) | |
# Elasticsearch host | |
#es_host: localhost | |
# (Optional) | |
# Elasticsearch port | |
#es_port: 9200 | |
# (Required) | |
# PagerTree Integration URL | |
pagertree_integration_url: <PagerTree Endpoint URL> | |
# (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: pagertree_rule | |
# (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: logstash-* | |
#doc_type: "golog" | |
# (Required, frequency specific) | |
# Alert when this many documents matching the query occur within a timeframe | |
num_events: 50 | |
# (Required, frequency specific) | |
# num_events must occur within this amount of time to trigger an alert | |
timeframe: | |
hours: 2 | |
# (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: "@message: *hihi*" | |
# (Required) | |
# The alert is use when a match is found | |
alert: | |
- "pagertree" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment