From fdbf7cb284de6a511db576887d8ff09c50779bc3 Mon Sep 17 00:00:00 2001 From: ruflin Date: Mon, 16 Jul 2018 22:52:02 +0200 Subject: [PATCH] Fix rename log message Instead of the from field the to field was logged. --- libbeat/processors/actions/rename.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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