Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRegistryFile = ".filebeat" DefaultIgnoreOlderDuration time.Duration = 10 * time.Minute DefaultScanFrequency time.Duration = 10 * time.Second DefaultSpoolSize uint64 = 1024 DefaultIdleTimeout time.Duration = 5 * time.Second DefaultHarvesterBufferSize int = 16 << 10 // 16384 DefaultDocumentType = "log" DefaultTailFiles = false DefaultBackoff = 1 * time.Second DefaultBackoffFactor = 2 DefaultMaxBackoff = 10 * time.Second DefaultPartialLineWaiting = 5 * time.Second DefaultForceCloseWindowsFiles = false )
Defaults for config variables which are not set
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Filebeat FilebeatConfig
}
func (*Config) FetchConfigs ¶
func (config *Config) FetchConfigs()
Fetches and merges all config files given by configDir. All are put into one config object
type FilebeatConfig ¶
type HarvesterConfig ¶
type HarvesterConfig struct { InputType string `yaml:"input_type"` Fields map[string]string FieldsUnderRoot bool `yaml:"fields_under_root"` BufferSize int `yaml:"harvester_buffer_size"` TailFiles bool `yaml:"tail_files"` Encoding string `yaml:"encoding"` DocumentType string `yaml:"document_type"` Backoff string `yaml:"backoff"` BackoffDuration time.Duration BackoffFactor int `yaml:"backoff_factor"` MaxBackoff string `yaml:"max_backoff"` MaxBackoffDuration time.Duration PartialLineWaiting string `yaml:"partial_line_wating"` PartialLineWaitingDuration time.Duration ForceCloseWindowsFiles bool `yaml:"force_close_windows_files"` }
Click to show internal directories.
Click to hide internal directories.