This repository has been archived by the owner on May 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vector.yaml
77 lines (77 loc) · 1.69 KB
/
vector.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
api:
address: 0.0.0.0:8686
enabled: true
playground: true
data_dir: /var/lib/vector
sinks:
kafka_out:
# acknowledgements:
# enable: true
# batch: null
# buffer: null
bootstrap_servers: redpanda:29092
# compression: none
encoding:
codec: json
group_id: vector-logs
# headers_key: headers
# healthcheck:
# enable: true
inputs:
- json_parse
key_field: user
# librdkafka_options:
# message_timeout_ms: 300000
# sasl: null
# socket_timeout_ms: 60000
topic: chat-room-vector
type: kafka
sources:
kafka_in:
# acknowledgements:
# enable: true
# auto_offset_reset: largest
bootstrap_servers: redpanda:29092
# commit_interval_ms: 5000
decoding:
codec: json
# fetch_wait_max_ms: 100
# framing:
# character_delimited:
# delimiter: \n
# max_length: 65535
# method: bytes
# newline_delimited:
# max_length: 65535
# octet_counting:
# max_length: 65535
group_id: vector-logs
# headers_key: headers
key_field: user
# librdkafka_options:
# offset_key: offset
# partition_key: partition
# sasl: null
# session_timeout_ms: 10000
# socket_timeout_ms: 60000
# topic_key: topic
topics:
- chat-room
type: kafka
transforms:
json_parse:
# drop_on_abort: true
# drop_on_error: false
# file: ./my/program.vrl
inputs:
- kafka_in
# reroute_dropped: false
source: |-
parsed, err = parse_json(.message)
if err != null {
log(err, level: "error")
}
. |= object(parsed) ?? {}
.new_field = "new value"
# timezone: local
type: remap