Documentation
¶
Index ¶
- type Grok
- func (g *Grok) AddPattern(name string, pattern string)
- func (g *Grok) AddPatternsFromPath(path string) error
- func (g *Grok) Match(pattern, text string) (bool, error)
- func (g *Grok) Parse(pattern string, text string) (map[string]string, error)
- func (g *Grok) ParseToMultiMap(pattern string, text string) (map[string][]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grok ¶
type Grok struct {
// contains filtered or unexported fields
}
Grok Type
func (*Grok) AddPattern ¶
AddPattern add a named pattern to grok
func (*Grok) AddPatternsFromPath ¶
AddPatternsFromPath loads grok patterns from a file or files from a directory
Click to show internal directories.
Click to hide internal directories.