Allow grok pattern to contain newlines (#4005)
(cherry picked from commit 55cfc383f3)
This commit is contained in:
committed by
Daniel Nelson
parent
71948a8f84
commit
787fca496f
@@ -132,6 +132,7 @@ func (p *Parser) Compile() error {
|
||||
// "custom patterns"
|
||||
p.namedPatterns = make([]string, 0, len(p.Patterns))
|
||||
for i, pattern := range p.Patterns {
|
||||
pattern = strings.TrimSpace(pattern)
|
||||
if pattern == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user