Documentation ¶
Overview ¶
Package keywords_counter provides ...
Index ¶
- type GlobPath
- type Logmonitor
- func (t *Logmonitor) Description() string
- func (t *Logmonitor) Gather(acc telegraf.Accumulator) error
- func (t *Logmonitor) Init() error
- func (t *Logmonitor) SampleConfig() string
- func (t *Logmonitor) SetParserFunc(fn parsers.ParserFunc)
- func (t *Logmonitor) Start(acc telegraf.Accumulator) error
- func (t *Logmonitor) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobPath ¶
type GlobPath struct { HasSuperMeta bool // contains filtered or unexported fields }
func (*GlobPath) GetRoots ¶
GetRoots returns a list of files and directories which should be optimal prefixes of matching files when you have a super-meta in your expression : - any directory under these roots may contain a matching file - no file outside of these roots can match the pattern Note that it returns both files and directories. All returned path will have the host platform separator.
func (*GlobPath) Match ¶
Match returns all files matching the expression. If it's a static path, returns path. All returned path will have the host platform separator.
func (*GlobPath) MatchString ¶
MatchString tests the path string against the glob. The path should contain the host platform separator.
type Logmonitor ¶
type Logmonitor 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"` Keywords []string `toml:"keywords"` KeywordsLower []string `toml:"-"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func NewLogmonitor ¶
func NewLogmonitor() *Logmonitor
func (*Logmonitor) Description ¶
func (t *Logmonitor) Description() string
func (*Logmonitor) Gather ¶
func (t *Logmonitor) Gather(acc telegraf.Accumulator) error
func (*Logmonitor) Init ¶
func (t *Logmonitor) Init() error
func (*Logmonitor) SampleConfig ¶
func (t *Logmonitor) SampleConfig() string
func (*Logmonitor) SetParserFunc ¶
func (t *Logmonitor) SetParserFunc(fn parsers.ParserFunc)
func (*Logmonitor) Start ¶
func (t *Logmonitor) Start(acc telegraf.Accumulator) error
func (*Logmonitor) Stop ¶
func (t *Logmonitor) Stop()