2021-08-05 19:31:02 -04:00
|
|
|
---
|
|
|
|
|
layout: docs
|
2023-07-07 14:42:11 -04:00
|
|
|
page_title: Controller/worker - events - common sink parameters
|
2021-08-05 19:31:02 -04:00
|
|
|
description: |-
|
|
|
|
|
The common sink parameters for all sink types.
|
|
|
|
|
---
|
|
|
|
|
|
2023-07-07 14:42:11 -04:00
|
|
|
# Common sink parameters
|
2021-08-05 19:31:02 -04:00
|
|
|
|
|
|
|
|
These parameters are shared across all sink types:
|
|
|
|
|
|
|
|
|
|
- `name` - Specify a name for the sink.
|
|
|
|
|
|
|
|
|
|
- `description` - Specify a description for the sink.
|
|
|
|
|
|
|
|
|
|
- `event_types` - Specifies a list of event types that will be sent to the sink.
|
2023-09-22 07:17:26 -04:00
|
|
|
Can be `*`, `audit`, `error`, `observation`, `system`, or `telemetry`.
|
2021-08-05 19:31:02 -04:00
|
|
|
|
2022-09-13 16:48:06 -07:00
|
|
|
- `event_source_url` - Specifies an optional event source URL for the sink. If
|
|
|
|
|
not specified, the default source will be composed of the
|
|
|
|
|
`https://hashicorp.com/boundary.io/ServerName/Path/FileName`.
|
2021-08-05 19:31:02 -04:00
|
|
|
|
2022-07-20 20:33:49 +01:00
|
|
|
- `allow_filters` - Specifies a set of predicates for including an event in the
|
2021-08-05 19:31:02 -04:00
|
|
|
sink. If any filter matches, the event will be included. For more information,
|
2023-01-20 18:17:34 -05:00
|
|
|
on using filters see: [event filtering](/boundary/docs/concepts/filtering/events)
|
2022-05-03 14:24:04 -06:00
|
|
|
|
2024-02-07 03:31:58 +08:00
|
|
|
- `deny_filters` - Specifies a set predicates for excluding an event in the
|
2021-08-05 19:31:02 -04:00
|
|
|
sink. If any filter matches, the event will be excluded. For more information
|
2023-01-20 18:17:34 -05:00
|
|
|
on using filters see: [event filtering](/boundary/docs/concepts/filtering/events)
|
2021-08-05 19:31:02 -04:00
|
|
|
|
|
|
|
|
- `format` - Specifies the format for the sink. Can be `cloudevents-json`,
|
|
|
|
|
`cloudevents-text`, `hclog-json`, or `hclog-text`.
|
|
|
|
|
|
|
|
|
|
- `type` - Specifies the type of sink. Can be `stderr` or `file`.
|
2022-05-03 14:24:04 -06:00
|
|
|
|
|
|
|
|
- `audit_config` - Specifies configuration for the processing of audit events
|
|
|
|
|
for the sink. This is ignored if the sink is not configured to receive
|
|
|
|
|
`audit` events.
|
|
|
|
|
|
|
|
|
|
## `audit_config` parameters
|
|
|
|
|
|
|
|
|
|
- `audit_filter_overrides` - Specifies overrides for the filter operations that
|
|
|
|
|
are applied to audit events.
|
|
|
|
|
|
|
|
|
|
### `audit_filter_overrides` parameters
|
|
|
|
|
|
|
|
|
|
- `sensitive` `(string: "", "encrypt", "hmac-sha256", "redact")` - Specifies
|
|
|
|
|
the filter operation to apply to fields that are classified as sensitive.
|
|
|
|
|
|
|
|
|
|
- `secret` `(string: "", "encrypt", "hmac-sha256", "redact")` - Specifies
|
|
|
|
|
the filter operation to apply to fields that are classified as secret.
|
|
|
|
|
|
2023-07-07 14:42:11 -04:00
|
|
|
## `audit_config` examples
|
2022-05-03 14:24:04 -06:00
|
|
|
|
|
|
|
|
This example is equivalent to the default settings if no `audit_config` stanza
|
|
|
|
|
is provided.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
audit_config {
|
|
|
|
|
audit_filter_overrides {
|
|
|
|
|
sensitive = "redact"
|
|
|
|
|
secret = "redact"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This example will HMAC sensitive fields, and encrypt secrets.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
audit_config {
|
|
|
|
|
audit_filter_overrides {
|
|
|
|
|
sensitive = "hmac-sha256"
|
|
|
|
|
secret = "encrypt"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This example will not apply a filter to sensitive fields.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
audit_config {
|
|
|
|
|
audit_filter_overrides {
|
|
|
|
|
sensitive = ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|