-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsameUserCreateHostedWorkflow.yaml
More file actions
46 lines (38 loc) · 1.16 KB
/
Copy pathsameUserCreateHostedWorkflow.yaml
File metadata and controls
46 lines (38 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# (Required)
# Rule name, must be unique
name: Same User Create Many Workflows 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-*"
# (Required, frequency specific)
# Alert when this many documents matching the query occur within a timeframe
num_events: 4
# (Required, frequency specific)
# num_events must occur within this amount of time to trigger an alert
timeframe:
hours: 1
query_key:
- clientip
- host
# (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:
- term:
path.keyword: "/workflows/hostedEntry"
alert_subject: "User Created Many Hosted Workflows"
alert_text_type: alert_text_only
alert_text: "{} created more than 4 hosted workflows at {}"
alert_text_args:
- clientip
- host
# The alert is use when a match is found
alert:
- slack
slack_webhook_url: "{{SLACK_URL}}"
slack_username_override: "ElastAlert"