diff --git a/libbeat/processors/actions/rename.go b/libbeat/processors/actions/rename.go index bae1bd753f4..47e367b9b5f 100644 --- a/libbeat/processors/actions/rename.go +++ b/libbeat/processors/actions/rename.go @@ -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