Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLineRegex ¶
Compile a regex & validate expectations for log line parsing
Types ¶
type Options ¶
type Options struct { // Note: `LineRegex` and `line_regex` are named as singular so that // it's less confusing to users to input them. // Might be worth making this consistent across the entire repo LineRegex []string `` /* 364-byte string literal not displayed */ TimeFieldName string `long:"timefield" description:"Name of the field that contains a timestamp" yaml:"timefield,omitempty"` TimeFieldFormat string `` /* 128-byte string literal not displayed */ NumParsers int `hidden:"true" description:"number of regex parsers to spin up" yaml:"-"` }
type RegexLineParser ¶
type RegexLineParser struct {
// contains filtered or unexported fields
}
func NewRegexLineParser ¶
func NewRegexLineParser(regexStrs []string) (*RegexLineParser, error)
NewRegexLineParser factory
Click to show internal directories.
Click to hide internal directories.