-
Notifications
You must be signed in to change notification settings - Fork 12
/
rules.toml
49 lines (46 loc) · 995 Bytes
/
rules.toml
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
47
48
49
[[rule]]
# Only one regex has to match to send the record. Order does not matter.
regexs = [
'.*a.*',
'^abc\.def\.'
]
clusters = [
# Matching records will be sent here.
'local0'
]
# If true, even if there is a match, we continue to the next rule.
continue = true
[[rule]]
# Prefix matching can be used instead of regex to match prefixes.
# Prefix matching is faster than regex matching.
prefixes = [
'abc',
'xyz',
'poi'
]
clusters = [
'local1'
]
[[rule]]
# This does the same as the previous regex, but is slower.
regexs = [
'^abc.*',
'^xyz.*',
'^poi.*'
]
clusters = [
'local1'
]
# Prefixes and regexs can be mixed. Either has to match, i.e. they use OR logic.
# Order does not matter.
[[rule]]
prefixes = [
'xyz',
'poi'
]
regexs = [
'^abc.*'
]
clusters = [
'local1'
]