-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuntested_example_config.yaml
96 lines (89 loc) · 2.23 KB
/
untested_example_config.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
log_groups:
example_log_group:
accounts:
- 123456789123
index: example_index
log_streams:
- regex: example_.*
sourcetype: example_sourcetype
- regex: test_.*
sourcetype: test_sourcetype
subscription_filter: " "
sourcetypes:
sourcetype_without_filters: {}
test_sourcetype:
denylist_regexes:
- foo
example_sourcetype:
allowlist_regexes:
- ^{*
redact_regexes:
- redact
# INPUT:
# account = 111111111111
# log_group_name = example_log_group
# log_stream_name = test_stream
# log_content = '{"foo":"bar"}'
# OUTPUT:
# Log Dropped due to no matching account
# INPUT:
# account = 123456789123
# log_group_name = foo_log_group
# log_stream_name = test_stream
# log_content = '{"foo":"bar"}'
# OUTPUT:
# Log Dropped due to no matching log group
# INPUT:
# account = 123456789123
# log_group_name = example_log_group
# log_stream_name = foo_stream
# log_content = '{"foo":"bar"}'
# OUTPUT:
# Log Dropped due to no matching sourcetype
# INPUT:
# account = 123456789123
# log_group_name = example_log_group
# log_stream_name = test_stream
# log_content = '{"foo":"bar"}'
# OUTPUT:
# Log Dropped due to denylist_regexes
# INPUT:
# account = 123456789123
# log_group_name = example_log_group
# log_stream_name = example_stream
# log_content = '{"foo":"bar"}'
# OUTPUT:
# {
# "index":"example_index,
# "sourcetype":"example_sourcetype",
# "time": <TIMESTAMP>,
# "host": "<FIREHOSE_ARN>",
# "source": "example_log_group",
# "fields": {
# "aws_account_id": 123456789123,
# "cw_log_stream": example_test_stream,
# },
# "event": {
# "foo": "bar"
# }
# }
# INPUT:
# account = 123456789123
# log_group_name = example_log_group
# log_stream_name = example_stream
# log_content = '{"foo":"should be a redact here"}'
# OUTPUT:
# {
# "index":"example_index,
# "sourcetype":"example_sourcetype",
# "time": <TIMESTAMP>,
# "host": "<FIREHOSE_ARN>",
# "source": "example_log_group",
# "fields": {
# "aws_account_id": 123456789123,
# "cw_log_stream": example_test_stream,
# },
# "event": {
# "foo": "should be a ***REDACTED BY example_sourcetype.redact_regexes.2*** here"
# }
# }