How to consume Cloud Trail Data Event for S3 ?

0

We are trying to get cloud trail data event but using the SDK or AWS CLI we can only fetch management events or insight events.

Refer : https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/lookup-events.html

However for our use case we need to fetch events such as GetObject/PutObject which are data events. We can directly get access to S3 bucket (where cloud trail logs are dumped) and surf through the objects but was just looking for a better solution .

Gourab
已提问 1 年前354 查看次数
2 回答
2

CloudTrail SDK or AWS CLI can only fetch management events or insight events, there are other alternatives that you can consider.

One option is to use the CloudTrail Insights feature, which allows you to analyze CloudTrail data using a query language. With CloudTrail Insights, you can write a query to filter and search for S3 data events, such as GetObject and PutObject, based on specific criteria.

Another option is to set up a CloudWatch Events rule to trigger a Lambda function whenever a data event occurs in S3. The Lambda function can then process the event and perform any necessary actions, such as storing the event data in a database or sending a notification.

已回答 1 年前
0

You can use Athena to query the CloudTrail data in S3. See: Analyze Security, Compliance, and Operational Activity Using AWS CloudTrail and Amazon Athena.

You can see how this is done in this workshop, Ransomware on S3 - Simulation and Detection

profile pictureAWS
专家
kentrad
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则