服务 · 管理与监管
AWS CloudTrail
Records the actions taken in your AWS account: who did what, when and from where.
本课尚未翻译,暂以英文显示。
- 1A user, a role or an AWS service makes a request: in the console, with the CLI or an SDK, or to the API.
- 2CloudTrail records it as an event. Management events from the last 90 days appear in the event history.
- 3A trail delivers the events as log files to an S3 bucket, where you can keep them for years.
分步说明
- 1A user, a role or an AWS service makes a request: in the console, with the CLI or an SDK, or to the API.
- 2CloudTrail records it as an event. Management events from the last 90 days appear in the event history.
- 3A trail delivers the events as log files to an S3 bucket, where you can keep them for years.
- The question it answers
- How is it performing? Is something wrong right now?
- 示例
- Alert when CPU use stays above 80%
CloudTrail
- The question it answers
- Who did what, when and from where?
- 示例
- Find the user who deleted a security group
- The question it answers
- What does it look like, what changed, and does it follow the rules?
- 示例
- See that a security group was opened to the whole internet on Monday
| Service | The question it answers | 示例 |
|---|---|---|
| How is it performing? Is something wrong right now? | Alert when CPU use stays above 80% | |
| Who did what, when and from where? | Find the user who deleted a security group | |
| What does it look like, what changed, and does it follow the rules? | See that a security group was opened to the whole internet on Monday |
1 / 2
- The question it answers
- How is it performing? Is something wrong right now?
- 示例
- Alert when CPU use stays above 80%
CloudTrail
- The question it answers
- Who did what, when and from where?
- 示例
- Find the user who deleted a security group
| Service | The question it answers | 示例 |
|---|---|---|
| How is it performing? Is something wrong right now? | Alert when CPU use stays above 80% | |
| Who did what, when and from where? | Find the user who deleted a security group |
2 / 2
- The question it answers
- What does it look like, what changed, and does it follow the rules?
- 示例
- See that a security group was opened to the whole internet on Monday
| Service | The question it answers | 示例 |
|---|---|---|
| What does it look like, what changed, and does it follow the rules? | See that a security group was opened to the whole internet on Monday |
是什么
AWS CloudTrail records actions taken by users, roles and AWS services as events. It records requests made in the AWS Management Console, with the AWS Command Line Interface (AWS CLI), with the AWS SDKs and directly to the APIs. Each event shows who made the request, which action it was and on which resource, when it happened and the source IP address.
是什么
Every account can view, search and download the last 90 days of management events in the event history, at no charge. To keep events longer, you create a trail. A trail delivers log files to an Amazon Simple Storage Service (Amazon S3) bucket, and can also send events to Amazon CloudWatch Logs so you can set alarms on them. In AWS Organizations, one organization trail can record every account.
Management events, such as launching an instance or changing a security group, are recorded by default. Data events, such as reading an object in S3, come in much larger numbers. You turn them on separately, and they cost extra.
要记住
- CloudTrail is on by default. The event history shows the last 90 days of management events in each Region, at no charge.
- A trail keeps events in an S3 bucket for as long as you need. One copy of management events is delivered free. You pay for the S3 storage.
- Trails created in the console record activity in every enabled Region.
要记住
- Log file integrity validation shows whether a log file was changed or deleted after delivery.
- Member accounts cannot turn off or change an organization trail.
- You can query CloudTrail logs in S3 with SQL, using Amazon Athena.
考试中
- “Which user terminated this EC2 instance?” or “track API activity for an audit” points to AWS CloudTrail.
- “Who changed it?” is CloudTrail. “What changed, and is it compliant?” is AWS Config. “How is it performing?” is Amazon CloudWatch.
- “Keep a record of API activity for longer than 90 days” points to a CloudTrail trail that delivers log files to Amazon S3.