-
Notifications
You must be signed in to change notification settings - Fork 2
/
rules.txt.dist
29 lines (23 loc) · 1.23 KB
/
rules.txt.dist
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
{
'basic': {
# Equal messages that appear within this time interval will be grouped (in seconds)
'min_group_time': 300,
# Grouped message will be sent if there is no other messages within this time interval (in seconds)
'silent_interval': 30,
# Whom to notify
'notify': ['some@user.domain', 'another@user.domain'],
# Delimiter means regex that detects the end of multi line log entry (default is newline, when dealing with single line entries only)
# 'delimiter': '---',
# Events that trigger this rule
'events': [
{
# The regexp to match the message
'pattern': 'error|exception',
# The regexp pattern for exclusion of the messages, caught by the main pattern
# 'exclude_pattern': 'not found',
# Date pattern helps us group the same messages that only differ by date string that is coming together with them
# 'date_pattern': '^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} '
}
]
}
}