Skip to content

Commit

Permalink
Revert the bucket_owner label in s3 event
Browse files Browse the repository at this point in the history
  • Loading branch information
milenpankov-bosch committed Dec 20, 2024
1 parent 2bd32f2 commit 0ddf2b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/lambda-promtail/lambda-promtail/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ func getLabels(record events.S3EventRecord) (map[string]string, error) {

labels["key"] = record.S3.Object.Key
labels["bucket"] = record.S3.Bucket.Name
labels["bucket_owner"] = record.S3.Bucket.OwnerIdentity.PrincipalID
labels["bucket_region"] = record.AWSRegion
for key, p := range parsers {
if p.filenameRegex.MatchString(labels["key"]) {
Expand Down

0 comments on commit 0ddf2b7

Please sign in to comment.