From 0602ac81785f28189952d437cc6b3b3b2dfa7d5b Mon Sep 17 00:00:00 2001 From: Nic Waller <42976427+nhnicwaller@users.noreply.github.com> Date: Thu, 28 May 2020 07:55:13 -0700 Subject: [PATCH] include bucket name when logging error (#18679) (cherry picked from commit df6f2169c5c9e170f020d53a4ea708466554390d) --- x-pack/filebeat/input/s3/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/s3/input.go b/x-pack/filebeat/input/s3/input.go index 84818f94680..ae9136231cd 100644 --- a/x-pack/filebeat/input/s3/input.go +++ b/x-pack/filebeat/input/s3/input.go @@ -391,7 +391,7 @@ func (p *s3Input) handleS3Objects(svc s3iface.ClientAPI, s3Infos []s3Info, errC p.logger.Debugf("Processing file from s3 bucket \"%s\" with name \"%s\"", info.name, info.key) err := p.createEventsFromS3Info(svc, info, s3Ctx) if err != nil { - err = errors.Wrapf(err, "createEventsFromS3Info failed for %v", info.key) + err = errors.Wrapf(err, "createEventsFromS3Info failed processing file from s3 bucket \"%s\" with name \"%s\"", info.name, info.key) p.logger.Error(err) s3Ctx.setError(err) }