Files
threshold/website/content/docs/configuration/events/file.mdx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-08-05 19:31:02 -04:00
---
layout: docs
page_title: Controller/worker - events - file sink - configuration
2021-08-05 19:31:02 -04:00
description: |-
The file sink configures Boundary to send events to a file.
---
# `file` sink
2021-08-05 19:31:02 -04:00
The file sink configures Boundary to send events to a file.
```hcl
2021-10-13 13:57:31 -06:00
sink {
2021-08-05 19:31:02 -04:00
name = "obs-sink"
description = "Observations sent to a file"
event_types = ["observation"]
format = "cloudevents-json"
file {
2022-06-10 13:30:05 -04:00
path = "/var/log/boundary"
file_name = "events.ndjson"
2021-08-05 19:31:02 -04:00
}
}
```
The `sink` stanza may be specified more than once to make Boundary send events
to multiple sinks; however, each file sink must have a unique `path` +
`file_name`.
## Common parameters
2021-08-05 19:31:02 -04:00
2023-01-20 18:17:34 -05:00
These parameters are shared across all sink types: [common sink parameters](/boundary/docs/configuration/events/common)
2021-08-05 19:31:02 -04:00
## `file` parameters
These parameters are only valid for a `file` sink.
- `file_name` - Specifies the file name for the sink.
2022-06-10 13:30:05 -04:00
- `path` - Optionally specifies the file path for the sink.
- `rotate_bytes` - Optionally specifies the number of bytes that should trigger rotation of
2021-08-05 19:31:02 -04:00
a file sink.
2022-06-10 13:30:05 -04:00
- `rotate_duration` - Optionally specifies how often a file sink should be rotated.
2021-08-05 19:31:02 -04:00
2022-06-10 13:30:05 -04:00
- `rotate_max_files` - Optionally specifies how many historical rotated files should be kept
2021-08-05 19:31:02 -04:00
for a file sink.