forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile.toml
More file actions
46 lines (41 loc) · 1.17 KB
/
Copy pathfile.toml
File metadata and controls
46 lines (41 loc) · 1.17 KB
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
[sinks.file]
title = "File"
beta = false
common = false
delivery_guarantee = "best_effort"
egress_method = "streaming"
function_category = "transmit"
healthcheck = false
input_types = ["log"]
requirements = {}
write_to_description = "a file"
<%= render("_partials/_component_options.toml", type: "sink", name: "file") %>
[sinks.file.options.encoding]
type = "string"
category = "requests"
common = true
required = true
description = """\
The encoding format used to serialize the events before outputting.\
"""
[sinks.file.options.encoding.enum]
ndjson = "Each event is encoded into JSON and the payload is new line delimited."
text = "Each event is encoded into text via the `message` key and the payload is new line delimited."
[sinks.file.options.path]
type = "string"
common = true
examples = [
"vector-%Y-%m-%d.log",
"application-{{ application_id }}-%Y-%m-%d.log"
]
required = true
templateable = true
description = "File name to write events to."
[sinks.file.options.idle_timeout_secs]
type = "int"
default = "30"
description = """\
The amount of time a file can be idle and stay open. \
After not receiving any events for this timeout, the file will be flushed and \
closed.
"""