概念
Where to find security logs
Which AWS service records which activity, and where you can read each log.
本课尚未翻译,暂以英文显示。
Who did what, when and from where?
- Recorded by
CloudTrail
- Where to find it
- Event history for the last 90 days. A trail keeps events in an S3 bucket, and can also send them to CloudWatch Logs.
Which traffic reached my network, and was it accepted or rejected?
- Recorded by
VPCFlow Logs
- Where to find it
- CloudWatch Logs or an S3 bucket
Who sent requests to my bucket?
- Recorded by
S3access logs
- Where to find it
- An S3 bucket you choose, or CloudWatch Logs
How was this resource set up last month, and what changed?
- Recorded by
Config
- Where to find it
- The resource timeline in the Config console, and history files in an S3 bucket
What did my application or operating system write?
- Recorded by
CloudWatch
- Where to find it
- Log groups in CloudWatch Logs
| The question | Recorded by | Where to find it |
|---|---|---|
| Who did what, when and from where? | Event history for the last 90 days. A trail keeps events in an S3 bucket, and can also send them to CloudWatch Logs. | |
| Which traffic reached my network, and was it accepted or rejected? | CloudWatch Logs or an S3 bucket | |
| Who sent requests to my bucket? | An S3 bucket you choose, or CloudWatch Logs | |
| How was this resource set up last month, and what changed? | The resource timeline in the Config console, and history files in an S3 bucket | |
| What did my application or operating system write? | Log groups in CloudWatch Logs |
1 / 3
Who did what, when and from where?
- Recorded by
CloudTrail
- Where to find it
- Event history for the last 90 days. A trail keeps events in an S3 bucket, and can also send them to CloudWatch Logs.
Which traffic reached my network, and was it accepted or rejected?
- Recorded by
VPCFlow Logs
- Where to find it
- CloudWatch Logs or an S3 bucket
| The question | Recorded by | Where to find it |
|---|---|---|
| Who did what, when and from where? | Event history for the last 90 days. A trail keeps events in an S3 bucket, and can also send them to CloudWatch Logs. | |
| Which traffic reached my network, and was it accepted or rejected? | CloudWatch Logs or an S3 bucket |
2 / 3
3 / 3
What did my application or operating system write?
- Recorded by
CloudWatch
- Where to find it
- Log groups in CloudWatch Logs
| The question | Recorded by | Where to find it |
|---|---|---|
| What did my application or operating system write? | Log groups in CloudWatch Logs |
是什么
Logs are the record you turn to when you investigate an incident or answer an auditor. On AWS, each kind of activity is recorded by a different service or feature, so the first step is to know which log answers your question.
是什么
AWS CloudTrail records actions: who called which API, when and from where. VPC Flow Logs, a feature of Amazon Virtual Private Cloud (Amazon VPC), record information about the IP traffic going to and from network interfaces in your VPC. Each record shows the source and destination addresses and ports, and whether the traffic was accepted or rejected. Amazon Simple Storage Service (Amazon S3) server access logs record the requests made to a bucket. AWS Config records how each resource was configured over time. Amazon CloudWatch Logs collects logs from applications, operating systems and many AWS services.
是什么
Most of these logs end up in one of two places. In an S3 bucket, they are cheap to keep, and you can query them with SQL in Amazon Athena. In CloudWatch Logs, you can search them and set alarms. Amazon GuardDuty analyzes CloudTrail management events, VPC Flow Logs and DNS logs to look for threats. It reads its own copy, so you do not have to turn these logs on for it.
要记住
- Who did what, and when: AWS CloudTrail.
- Which traffic reached a network interface, and whether it was accepted or rejected: VPC Flow Logs.
- Requests made to an S3 bucket: S3 server access logs.
- How a resource was set up at a point in the past: AWS Config.
- Logs from applications and operating systems: CloudWatch Logs, often sent by the CloudWatch agent.
要记住
- For long-term storage, keep logs in S3. Query them there with Amazon Athena.
考试中
- “Find out which user deleted a resource” points to AWS CloudTrail. “See which IP addresses tried to reach an instance” points to VPC Flow Logs.
- “Keep logs for years at low cost” points to Amazon S3. “Search application logs and alarm on errors” points to CloudWatch Logs.
- “See how a resource was configured last month” points to AWS Config. “Record each request made to an S3 bucket” points to S3 server access logs.
别和这些弄混
AWS CloudTrailRecords the actions taken in your AWS account: who did what, when and from where.
- Access reportsIAM reports that show who has access to your account, the state of their credentials, and which permissions go unused.
Amazon GuardDutyDetects threats, such as stolen credentials or cryptomining, by analyzing your account’s activity and network logs.