Skip to content

Commit 2bfbac7

Browse files
ndakkouneViBiOh
andauthored
Update aws/logs_monitoring_go/internal/handling/cloudtrail.go
Co-authored-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent a97dc93 commit 2bfbac7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

aws/logs_monitoring_go/internal/handling/cloudtrail.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ const (
2323
cloudTrailUserIdentityKey = "userIdentity"
2424
)
2525

26-
var cloudTrailRegex = sync.OnceValue(func() *regexp.Regexp {
27-
return regexp.MustCompile(`\d+_CloudTrail(|-Digest|-Insight)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+)\.json\.gz$`)
28-
})
26+
var cloudTrailRegex = regexp.MustCompile(`\d+_CloudTrail(|-Digest|-Insight)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+)\.json\.gz$`)
2927

3028
var ec2InstanceRegexp = sync.OnceValue(func() *regexp.Regexp {
3129
return regexp.MustCompile(`^arn:aws:sts::.*?:assumed-role/(?P<role>.*?)/(?P<host>i-([0-9a-f]{8}|[0-9a-f]{17}))$`)

0 commit comments

Comments
 (0)