From 1b13b6df270d820d9b362d69a6ab198c3b3355fc Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Fri, 29 May 2020 08:06:35 -0600 Subject: [PATCH] include bucket name when logging error (#18679) (#18823) (cherry picked from commit df6f2169c5c9e170f020d53a4ea708466554390d) Co-authored-by: Nic Waller <42976427+nhnicwaller@users.noreply.github.com> --- 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 684ad5ae822..980bc896170 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) }