forked from uptrace/uptrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vector.toml
36 lines (31 loc) · 887 Bytes
/
vector.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
[sources.syslog_logs]
type = "demo_logs"
format = "syslog"
[sources.apache_common_logs]
type = "demo_logs"
format = "apache_common"
[sources.apache_error_logs]
type = "demo_logs"
format = "apache_error"
[sources.json_logs]
type = "demo_logs"
format = "json"
# Parse Syslog logs
# See the Vector Remap Language reference for more info: https://vrl.dev
[transforms.parse_logs]
type = "remap"
inputs = ["syslog_logs"]
source = '''
. = parse_syslog!(string!(.message))
'''
# Export data to Uptrace.
[sinks.uptrace]
type = "http"
method = "post"
inputs = ["parse_logs", "apache_common_logs", "apache_error_logs", "json_logs"]
encoding.codec = "json"
framing.method = "newline_delimited"
compression = "gzip"
uri = "http://uptrace:14318/api/v1/vector/logs"
#uri = "https://api.uptrace.dev/api/v1/vector/logs"
request.headers.uptrace-dsn = "http://project1_secret_token@localhost:14317/1"