-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[parsers] add cloudtrail via cloudwatch logs support (#745)
* [parsers] adding support for loading embedded json * [test] tests for embedded json support * [schemas] schema for cloudtrail log via cloudwatch logs * adding validation test event for cloudtrail via cloudwatch * addressing pr feedback
- Loading branch information
1 parent
c1dd599
commit 1ae5bd2
Showing
5 changed files
with
168 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/integration/rules/cloudwatch/cloudtrail_via_cloudwatch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"data": { | ||
"messageType": "DATA_MESSAGE", | ||
"owner": "123456789012", | ||
"logGroup": "CloudTrail/DefaultLogGroup", | ||
"logStream": "123456789012_CloudTrail_us-east-1", | ||
"subscriptionFilters": [ | ||
"FooBarSubscription" | ||
], | ||
"logEvents": [ | ||
{ | ||
"id": "44056647182143267075860006634052172261824828947338793472", | ||
"timestamp": 1526951139360, | ||
"message": "{\"eventVersion\": \"foo\", \"eventID\": \"bar\", \"eventTime\": \"foo\", \"sharedEventID\": \"bar\", \"additionalEventData\": {}, \"requestParameters\": {}, \"eventType\": \"foo\", \"responseElements\": {}, \"awsRegion\": \"foo\", \"eventName\": \"bar\", \"readOnly\": true, \"userIdentity\": {}, \"eventSource\": \"foo\", \"requestID\": \"bar\", \"userAgent\": \"foo\", \"sourceIPAddress\": \"bar\", \"resources\": \"foo\", \"recipientAccountId\": \"bar\"}" | ||
} | ||
] | ||
}, | ||
"description": "CloudTrail logs via CloudWatch logs DATA_MESSAGE (validation only)", | ||
"log": "cloudwatch:cloudtrail", | ||
"service": "kinesis", | ||
"source": "prefix_cluster1_stream_alert_kinesis", | ||
"trigger_rules": [], | ||
"validate_schema_only": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters