ladderlore
  • S3 や IAM などのサービス名を入力してください。

概念

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
Match the question to the log that answers it.

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

2 / 3

  • 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

3 / 3

  • What did my application or operating system write?

    Recorded by
    CloudWatch
    Where to find it
    Log groups in CloudWatch Logs
Match the question to the log that answers it.
CloudTrailConfig
VPC Flow Logs
Application and system logs
S3CloudWatchAthena
Search and alarms
Most logs end up in an S3 bucket, to keep and query, or in CloudWatch Logs, to search and alarm on.

概要

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.