Skip to content

Filtering and Processing CloudTrail Logs #100

Answered by jshlbrd
Bin-security asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Bin-security 👋

As you've probably seen, CloudTrail events are written to S3 objects in a single JSON event that contains an array of records. Here's an example:

{
	"Records": [
		{
			"eventVersion": "1.05",
			"userIdentity": {
				"type": "IAMUser",
				"principalId": "AIDABCD1234567890",
				"arn": "arn:aws:iam::123456789012:user/jdoe",
				"accountId": "123456789012",
				"accessKeyId": "AKIAIJKLMNOPQRSTU",
				"userName": "jdoe"
			},
			"eventTime": "2023-04-19T08:30:45Z",
			"eventSource": "s3.amazonaws.com",
			"eventName": "PutObject",
			"awsRegion": "us-west-2",
			"sourceIPAddress": "203.0.113.1",
			"userAgent": "aws-cli/1.16.310 Python/3.7.3 Darwin/18.7.0 botocore/1.12.200

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Bin-security
Comment options

@jshlbrd
Comment options

Answer selected by Bin-security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants