Documentation ¶
Index ¶
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 MatchWhichLine MultilineMatchWhichLine `toml:"match_which_line"` InvertMatch bool Timeout *internal.Duration }
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"` Log telegraf.Logger `toml:"-"` MultilineConfig MultilineConfig `toml:"multiline"` // contains filtered or unexported fields }
func (*Tail) Description ¶
func (*Tail) SampleConfig ¶
func (*Tail) SetParserFunc ¶
func (t *Tail) SetParserFunc(fn parsers.ParserFunc)
Click to show internal directories.
Click to hide internal directories.