Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowHeaderMetadataParsing = featuregate.GlobalRegistry().MustRegister( "filelog.allowHeaderMetadataParsing", featuregate.StageBeta, featuregate.WithRegisterDescription("When enabled, allows usage of the `header` setting."), featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/18198"), )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { matcher.Criteria `mapstructure:",squash"` PollInterval time.Duration `mapstructure:"poll_interval,omitempty"` MaxConcurrentFiles int `mapstructure:"max_concurrent_files,omitempty"` MaxBatches int `mapstructure:"max_batches,omitempty"` StartAt string `mapstructure:"start_at,omitempty"` FingerprintSize helper.ByteSize `mapstructure:"fingerprint_size,omitempty"` MaxLogSize helper.ByteSize `mapstructure:"max_log_size,omitempty"` Encoding string `mapstructure:"encoding,omitempty"` SplitConfig split.Config `mapstructure:"multiline,omitempty"` TrimConfig trim.Config `mapstructure:",squash,omitempty"` FlushPeriod time.Duration `mapstructure:"force_flush_period,omitempty"` IncludeFileName bool `mapstructure:"include_file_name,omitempty"` IncludeFilePath bool `mapstructure:"include_file_path,omitempty"` IncludeFileNameResolved bool `mapstructure:"include_file_name_resolved,omitempty"` IncludeFilePathResolved bool `mapstructure:"include_file_path_resolved,omitempty"` Header *HeaderConfig `mapstructure:"header,omitempty"` DeleteAfterRead bool `mapstructure:"delete_after_read,omitempty"` }
Config is the configuration of a file input operator
type HeaderConfig ¶ added in v0.73.0
Click to show internal directories.
Click to hide internal directories.