-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvector-aggregator-conf.yaml
52 lines (36 loc) · 1.67 KB
/
vector-aggregator-conf.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
apiVersion: v1
kind: ConfigMap
metadata:
name: vector-aggregator-conf
namespace: vector
data:
vector.toml: |2+
data_dir = "/var/lib/vector"
[api]
enabled = true
address = "127.0.0.1:8686"
playground = true
[sources.vector_tcp]
type = "vector"
address = "0.0.0.0:9000"
[transforms.swimlanes]
type = "swimlanes"
inputs = ["vector_tcp"]
[transforms.swimlanes.lanes.audit_logs]
type = "check_fields"
"file.ends_with" = "apiserver/audit.log"
[transforms.parse_audit_logs]
type = "json_parser"
inputs = ["swimlanes.audit_logs"]
[transforms.swimlanes.lanes.kubernetes_logs]
type = "check_fields"
"file.starts_with" = "/var/log/pods/"
[sinks.elasticsearch]
type = "elasticsearch"
inputs = ["swimlanes.kubernetes_logs", "parse_audit_logs"]
compression = "none"
endpoint = "https://xxxxxxxxxx"
auth.user = "xxxxxxx"
auth.password = "xxxxxxx"
auth.strategy = "basic"
index = "{{ kubernetes.pod_namespace }}-%Y-%m-%d"