grok parser func unexported
This commit is contained in:
parent
892c95aa6e
commit
04f09d65bf
|
@ -129,7 +129,7 @@ func NewParser(config *Config) (Parser, error) {
|
||||||
config.Separator,
|
config.Separator,
|
||||||
config.Templates)
|
config.Templates)
|
||||||
case "grok":
|
case "grok":
|
||||||
parser, err = NewGrokParser(
|
parser, err = newGrokParser(
|
||||||
config.MetricName,
|
config.MetricName,
|
||||||
config.Patterns,
|
config.Patterns,
|
||||||
config.NamedPatterns,
|
config.NamedPatterns,
|
||||||
|
@ -142,7 +142,7 @@ func NewParser(config *Config) (Parser, error) {
|
||||||
return parser, err
|
return parser, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGrokParser(metricName string,
|
func newGrokParser(metricName string,
|
||||||
patterns []string,
|
patterns []string,
|
||||||
nPatterns []string,
|
nPatterns []string,
|
||||||
cPatterns string,
|
cPatterns string,
|
||||||
|
|
Loading…
Reference in New Issue