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 `` /* 336-byte string literal not displayed */
TimeFieldName string `long:"timefield" description:"Name of the field that contains a timestamp"`
TimeFieldFormat string `long:"time_format" description:"Timestamp format to use (strftime and Golang time.Parse supported)"`
NumParsers int `hidden:"true" description:"number of regex parsers to spin up"`
}
type RegexLineParser ¶
type RegexLineParser struct {
// contains filtered or unexported fields
}
func NewRegexLineParser ¶
func NewRegexLineParser(regexStrs []string) (*RegexLineParser, error)
RegexLineParser factory
Click to show internal directories.
Click to hide internal directories.