Namestring`hcl:"name"`// Name defines a name for the sink.
Descriptionstring`hcl:"description"`// Description defines a description for the sink.
EventTypes[]Type`hcl:"event_types"`// EventTypes defines a list of event types that will be sent to the sink. See the docs for EventTypes for a list of accepted values.
EventSourceUrlstring`hcl:"event_source_url"`// EventSource defines an optional event source URL for the sink. If not defined a default source will be composed of the https://hashicorp.com/boundary.io/ServerName/Path/FileName.
AllowFilters[]string`hcl:"allow_filters"`// AllowFilters define a set predicates for including an event in the sink. If any filter matches, the event will be included. The filter should be in a format supported by hashicorp/go-bexpr.
DenyFilters[]string`hcl:"deny_filters"`// DenyFilters define a set predicates for excluding an event in the sink. If any filter matches, the event will be excluded. The filter should be in a format supported by hashicorp/go-bexpr.
FormatSinkFormat`hcl:"format"`// Format defines the format for the sink (JSONSinkFormat or TextSinkFormat).
TypeSinkType`hcl:"type"`// Type defines the type of sink (StderrSink or FileSink).
StderrConfig*StderrSinkTypeConfig`hcl:"stderr"`// StderrConfig defines parameters for a stderr output.
FileConfig*FileSinkTypeConfig`hcl:"file"`// FileConfig defines parameters for a file output.
Pathstring`hcl:"path" mapstructure:"path"`// Path defines the file path for the sink
FileNamestring`hcl:"file_name" mapstructure:"file_name"`// FileName defines the file name for the sink
RotateBytesint`hcl:"rotate_bytes" mapstructure:"rotate_bytes"`// RotateBytes defines the number of bytes that should trigger rotation of a FileSink
RotateDurationtime.Duration`mapstructure:"rotate_duration"`// RotateDuration defines how often a FileSink should be rotated
RotateDurationHCLstring`hcl:"rotate_duration" json:"-"`// RotateDurationHCL defines hcl string version of RotateDuration
RotateMaxFilesint`hcl:"rotate_max_files" mapstructure:"rotate_max_files"`// RotateMaxFiles defines how may historical rotated files should be kept for a FileSink