grok

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Filter-plug: grok grok is regexp plugin and for filter data you like.

Index

Constants

View Source
const (
	ModuleName = "grok"
)

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(confraw *utils.ConfigRaw) (tfc utils.TypeFilterConfig, err error)

Init grok Handler.

Types

type FilterConfig

type FilterConfig struct {
	utils.FilterConfig
	Match string `json:"match"`
	Model string `json:"model"`
}

Define zeus' config.

func (*FilterConfig) Event

func (fc *FilterConfig) Event(event utils.LogEvent) utils.LogEvent

Filter's event,and this is the main function of filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL