add object key in src for S3 acquis (#2342)

This commit is contained in:
blotus 2023-07-07 10:09:18 +02:00 committed by GitHub
parent 1295de928a
commit f9ca14f010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}