Documentation ¶
Index ¶
- Variables
- type AlphabeticalSortRule
- type BaseSortRuledeprecated
- type Config
- type EmitFuncdeprecated
- type FileAttributesdeprecated
- type Finderdeprecated
- type HeaderConfig
- type Manager
- type MatchingCriteria
- type NumericSortRule
- type OrderingCriteria
- type Readerdeprecated
- type SortRuleImpldeprecated
- type TimestampSortRule
Constants ¶
This section is empty.
Variables ¶
var AllowHeaderMetadataParsing = featuregate.GlobalRegistry().MustRegister( "filelog.allowHeaderMetadataParsing", featuregate.StageAlpha, 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 AlphabeticalSortRule ¶ added in v0.81.0
type AlphabeticalSortRule struct {
BaseSortRule `mapstructure:",squash"`
}
type BaseSortRule
deprecated
added in
v0.81.0
type Config ¶
type Config struct { MatchingCriteria `mapstructure:",squash"` 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"` PollInterval time.Duration `mapstructure:"poll_interval,omitempty"` StartAt string `mapstructure:"start_at,omitempty"` FingerprintSize helper.ByteSize `mapstructure:"fingerprint_size,omitempty"` MaxLogSize helper.ByteSize `mapstructure:"max_log_size,omitempty"` MaxConcurrentFiles int `mapstructure:"max_concurrent_files,omitempty"` MaxBatches int `mapstructure:"max_batches,omitempty"` DeleteAfterRead bool `mapstructure:"delete_after_read,omitempty"` Splitter helper.SplitterConfig `mapstructure:",squash,omitempty"` Header *HeaderConfig `mapstructure:"header,omitempty"` }
Config is the configuration of a file input operator
type EmitFunc
deprecated
type EmitFunc func(ctx context.Context, attrs *FileAttributes, token []byte)
Deprecated: [v0.82.0] Use emit.Callback instead. This will be removed in a future release, tentatively v0.84.0.
type FileAttributes
deprecated
type FileAttributes struct { Name string `json:"-"` Path string `json:"-"` NameResolved string `json:"-"` PathResolved string `json:"-"` HeaderAttributes map[string]any }
Deprecated: [v0.82.0] This will be removed in a future release, tentatively v0.84.0.
func (*FileAttributes) HeaderAttributesCopy
deprecated
added in
v0.73.0
func (f *FileAttributes) HeaderAttributesCopy() map[string]any
HeaderAttributesCopy gives a copy of the HeaderAttributes, in order to restrict mutation of the HeaderAttributes.
Deprecated: [v0.82.0] This will be removed in a future release, tentatively v0.84.0.
type Finder
deprecated
type Finder = MatchingCriteria
Deprecated: [v0.82.0] Use MatchingCriteria instead. This will be removed in v0.83.0.
func (Finder) FindCurrent
deprecated
added in
v0.81.0
type HeaderConfig ¶ added in v0.73.0
type Manager ¶ added in v0.57.2
type Manager struct { *zap.SugaredLogger // contains filtered or unexported fields }
type MatchingCriteria ¶ added in v0.82.0
type MatchingCriteria struct { Include []string `mapstructure:"include,omitempty"` Exclude []string `mapstructure:"exclude,omitempty"` OrderingCriteria OrderingCriteria `mapstructure:"ordering_criteria,omitempty"` }
type NumericSortRule ¶ added in v0.81.0
type NumericSortRule struct {
BaseSortRule `mapstructure:",squash"`
}
type OrderingCriteria ¶ added in v0.81.0
type OrderingCriteria struct { Regex string `mapstructure:"regex,omitempty"` SortBy []SortRuleImpl `mapstructure:"sort_by,omitempty"` }
type Reader
deprecated
type Reader struct { *zap.SugaredLogger `json:"-"` // json tag excludes embedded fields from storage Fingerprint *fingerprint.Fingerprint Offset int64 FileAttributes map[string]any HeaderFinalized bool // contains filtered or unexported fields }
Reader manages a single file
Deprecated: [v0.80.0] This will be made internal in a future release, tentatively v0.82.0.
type SortRuleImpl
deprecated
added in
v0.81.0
type TimestampSortRule ¶ added in v0.81.0
type TimestampSortRule struct { BaseSortRule `mapstructure:",squash"` Layout string `mapstructure:"layout,omitempty"` Location string `mapstructure:"location,omitempty"` }