@ -75,11 +75,12 @@ type StderrSinkTypeConfig struct{}
// FileSinkTypeConfig contains configuration structures for file sink types
typeFileSinkTypeConfigstruct{
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"`// RotateByes defines the number of bytes that should trigger rotation of a FileSink
RotateDurationtime.Duration`hcl:"rotate_duration" mapstructure:"rotate_duration"`// RotateDuration defines how often a FileSink should be rotated
RotateMaxFilesint`hcl:"rotate_max_files" mapstructure:"rotate_max_files"`// RotateMaxFiles defines how may historical rotated files should be kept for a FileSink
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
}
// FilterType defines a type for filters (allow or deny)