Documentation ¶
Index ¶
- type Multiline
- type MultilineConfig
- type MultilineMatchWhichLine
- type Tail
- func (t *Tail) Gather(_ telegraf.Accumulator) error
- func (t *Tail) GetState() interface{}
- func (t *Tail) Init() error
- func (*Tail) SampleConfig() string
- func (t *Tail) SetParserFunc(fn telegraf.ParserFunc)
- func (t *Tail) SetState(state interface{}) error
- func (t *Tail) Start(acc telegraf.Accumulator) error
- func (t *Tail) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multiline ¶ added in v1.16.0
type Multiline struct {
// contains filtered or unexported fields
}
type MultilineConfig ¶ added in v1.16.0
type MultilineConfig struct { Pattern string `toml:"pattern"` MatchWhichLine MultilineMatchWhichLine `toml:"match_which_line"` InvertMatch bool `toml:"invert_match"` PreserveNewline bool `toml:"preserve_newline"` Quotation string `toml:"quotation"` Timeout *config.Duration `toml:"timeout"` }
func (*MultilineConfig) NewMultiline ¶ added in v1.16.0
func (m *MultilineConfig) NewMultiline() (*Multiline, error)
type MultilineMatchWhichLine ¶ added in v1.16.0
type MultilineMatchWhichLine int
Indicates relation to the multiline event: previous or next
const ( // Previous => Append current line to previous line Previous MultilineMatchWhichLine = iota // Next => Next line will be appended to current line Next )
func (MultilineMatchWhichLine) MarshalText ¶ added in v1.16.0
func (w MultilineMatchWhichLine) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (MultilineMatchWhichLine) String ¶ added in v1.16.0
func (w MultilineMatchWhichLine) String() string
func (*MultilineMatchWhichLine) UnmarshalTOML ¶ added in v1.16.0
func (w *MultilineMatchWhichLine) UnmarshalTOML(data []byte) (err error)
UnmarshalTOML implements ability to unmarshal MultilineMatchWhichLine from TOML files.
func (*MultilineMatchWhichLine) UnmarshalText ¶ added in v1.16.0
func (w *MultilineMatchWhichLine) UnmarshalText(data []byte) (err error)
UnmarshalText implements encoding.TextUnmarshaler
type Tail ¶
type Tail struct { Files []string `toml:"files"` FromBeginning bool `toml:"from_beginning"` Pipe bool `toml:"pipe"` WatchMethod string `toml:"watch_method"` MaxUndeliveredLines int `toml:"max_undelivered_lines"` CharacterEncoding string `toml:"character_encoding"` PathTag string `toml:"path_tag"` Filters []string `toml:"filters"` Log telegraf.Logger `toml:"-"` MultilineConfig MultilineConfig `toml:"multiline"` // contains filtered or unexported fields }
func (*Tail) SampleConfig ¶
func (*Tail) SetParserFunc ¶
func (t *Tail) SetParserFunc(fn telegraf.ParserFunc)
Click to show internal directories.
Click to hide internal directories.