- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
AWS CloudTrail provides an audit trail for your AWS account. Datadog reads this audit trail and creates events. Search your Datadog events explorer for these events or use them for correlation on your dashboards. Here is an example of a CloudTrail event:
For information on other AWS services, see the Amazon Web Services integration page
If you haven’t already, set up the Amazon Web Services integration first.
Note: The Datadog CloudTrail integration requires events to be collected in a CloudTrail bucket.
Add the following permissions to your Datadog IAM policy to collect AWS CloudTrail events. For more information on CloudTrail policies, see the AWS CloudTrail API Reference. CloudTrail also requires some S3 permissions to access the trails. These are required on the CloudTrail bucket only. For more information on Amazon S3 policies, see the Amazon S3 API Reference.
AWS Permission | Description |
---|---|
cloudtrail:DescribeTrails | Lists trails and the s3 bucket the trails are stored in. |
cloudtrail:GetTrailStatus | Skips inactive trails. |
s3:ListBucket | Lists objects in the CloudTrail bucket to get available trails. |
s3:GetBucketLocation | Obtains the bucket’s region to download trails. |
s3:GetObject | Fetches available trails. |
organizations:DescribeOrganization | Returns information about an account’s organization (required for org trails). |
Add this policy to your existing main Datadog IAM policy:
{
"Sid": "AWSDatadogPermissionsForCloudtrail",
"Effect": "Allow",
"Principal": {
"AWS": "<ARN_FROM_MAIN_AWS_INTEGRATION_SETUP>"
},
"Action": ["s3:ListBucket", "s3:GetBucketLocation", "s3:GetObject"],
"Resource": [
"arn:aws:s3:::<YOUR_S3_CLOUDTRAIL_BUCKET_NAME>",
"arn:aws:s3:::<YOUR_S3_CLOUDTRAIL_BUCKET_NAME>/*"
]
}
Note: The principal ARN is the one listed during the installation process for the main AWS integration. See the Resources section of How AWS CloudTrail works with IAM for more information on CloudTrail resource ARNs. If you are updating your policy (as opposed to adding a new one), you don’t need the SID
or the Principal
.
Install the Datadog - AWS CloudTrail integration: On the integration page, choose the types of events to show as normal priority (the default filter) in the Datadog events explorer. The accounts you configured in the Amazon Web Services page are also shown here. If you would like to see other events that are not mentioned here, contact Datadog support.
In AWS CloudTrail, create a Trail and select an S3 bucket to write the logs in.
All object create events
.Go to the Log Explorer to start exploring your logs.
For more information on collecting AWS Services logs, see Send AWS Services Logs with the Datadog Lambda Function.
The AWS CloudTrail integration does not include any metrics.
The AWS CloudTrail integration creates many different events based on the AWS CloudTrail audit trail. All events are tagged with #cloudtrail
in your Datadog events explorer. You can set their priority in the integration configuration.
CloudTrail events that can be set to a normal priority (they appear in the Event Explorer under the default filter):
The AWS CloudTrail integration does not include any service checks.
You need to first configure the Amazon Web Services integration. Then the CloudTrail tile can be configured.