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 .

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.

답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠