Skip to content

Commit

Permalink
Fix rename log message (#7614)
Browse files Browse the repository at this point in the history
Instead of the from field the to field was logged.
  • Loading branch information
ruflin authored and jsoriano committed Jul 18, 2018
1 parent 5eaf0b6 commit 3a0ab98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/processors/actions/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (f *renameFields) renameField(from string, to string, fields common.MapStr)
if f.config.IgnoreMissing && errors.Cause(err) == common.ErrKeyNotFound {
return nil
}
return fmt.Errorf("could not fetch value for key: %s, Error: %s", to, err)
return fmt.Errorf("could not fetch value for key: %s, Error: %s", from, err)
}

// Deletion must happen first to support cases where a becomes a.b
Expand Down

0 comments on commit 3a0ab98

Please sign in to comment.