Skip to content

Commit 41ed05f

Browse files
Adding cloudtrail insight to the cloudtrail regex pattern (#757)
Adding Cloudtrail-Insight to the regex pattern so that Cloudtrail-Insight logs are marked with source of cloudtrail instead of default s3.
1 parent bd019da commit 41ed05f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/logs_monitoring/steps/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from settings import DD_CUSTOM_TAGS, DD_SERVICE, DD_SOURCE
1010

1111
CLOUDTRAIL_REGEX = re.compile(
12-
"\d+_CloudTrail(|-Digest)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+).json.gz$",
12+
"\d+_CloudTrail(|-Digest|-Insight)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+).json.gz$",
1313
re.I,
1414
)
1515

0 commit comments

Comments
 (0)