forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector.toml
48 lines (41 loc) · 1.28 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
# __ __ __
# \ \ / / / /
# \ V / / /
# \_/ \/
#
# V E C T O R
# Configuration
#
# ------------------------------------------------------------------------------
# Website: https://vector.dev
# Docs: https://vector.dev/docs/
# Chat: https://chat.vector.dev
# ------------------------------------------------------------------------------
# data_dir = "/var/lib/vector"
# Vector's API (disabled by default)
# Enable and try it out with the `vector top` command
[api]
enabled = false
# address = "127.0.0.1:8686"
# Dummy Apache formatted logs
[sources.dummy_logs]
type = "generator"
format = "syslog"
interval = 1
# Parse Apache formatted logs
# See the Remap reference: https://vector.dev/docs/reference/vrl/
[transforms.parse_logs]
type = "remap"
source = '''
. = parse_syslog(.message)
'''
# Host-level metrics (cpu, memory, disk, etc)
[sources.host_metrics]
type = "host_metrics"
# Vector's own internal metrics
[sources.internal_metrics]
type = "internal_metrics"
# Print it all out for inspection
[sinks.print]
type = "console"
inptus = ["parse_logs", "host_metrics", "internal_metrics"]