Skip to content

Commit

Permalink
feat: Grok action will now only remove the field if grok parsing was …
Browse files Browse the repository at this point in the history
…successful
  • Loading branch information
driskell committed Apr 5, 2023
1 parent fba6388 commit 676225e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lc-lib/processor/actiongrok.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (g *grokAction) Process(evnt *event.Event) *event.Event {
continue
}
evnt.AddError("grok", fmt.Sprintf("Grok failure: %s", err))
return evnt
}
if g.Remove {
_, err := evnt.Resolve(g.Field, event.ResolveParamUnset)
Expand Down

0 comments on commit 676225e

Please sign in to comment.