From f9ca14f01037169422375c8a6f5ca15e00fd9a54 Mon Sep 17 00:00:00 2001 From: blotus Date: Fri, 7 Jul 2023 10:09:18 +0200 Subject: [PATCH] add object key in src for S3 acquis (#2342) --- pkg/acquisition/modules/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/acquisition/modules/s3/s3.go b/pkg/acquisition/modules/s3/s3.go index 96026f55e..651d40d3d 100644 --- a/pkg/acquisition/modules/s3/s3.go +++ b/pkg/acquisition/modules/s3/s3.go @@ -433,7 +433,7 @@ func (s *S3Source) readFile(bucket string, key string) error { l.Time = time.Now().UTC() l.Process = true l.Module = s.GetName() - l.Src = bucket + l.Src = bucket + "/" + key var evt types.Event if !s.Config.UseTimeMachine { evt = types.Event{Line: l, Process: true, Type: types.LOG, ExpectMode: types.LIVE}