1. 程式人生 > >Use CloudTrail to Review What Actions Occurred In Your AWS Account

Use CloudTrail to Review What Actions Occurred In Your AWS Account

AWS CloudTrail enables you to view and track API calls made to your account.

CloudTrail data can be accessed with the AWS Management Console, the AWS Command Line Interface (AWS CLI), AWS Tools for PowerShell, or directly through APIs.

Note: Not all AWS services have logs recorded and available with CloudTrail. For a list of AWS services integrated with CloudTrail, see

AWS Service Topics for CloudTrail.

Event history in the AWS CloudTrail console

In the Event history section of the AWS CloudTrail console, you can view all supported management events and event types (create, modify, delete, and non-mutable activities) from the past 90 days. For more, see

Viewing Events with CloudTrail Event History.

Amazon CloudWatch Logs

With CloudWatch Logs, you can search for operations that change the state of a resource, such as StopInstances, as well as operations that do not, such as DescribeInstances. For information about how to set up and configure CloudWatch Logs, see

Sending CloudTrail Events to CloudWatch Logs.

Consider the following:

  • You must explicitly configure CloudTrail to send logs to CloudWatch Logs, even if the trail is already enabled.
  • There can be multiple log streams, depending on the size and volume of events. To search across all streams, choose Search Log Group before selecting an individual stream.
  • Because CloudWatch Logs has an event size limitation of 256 KB, CloudTrail does not send events larger than 256 KB to CloudWatch Logs.

After you configure CloudWatch Logs, perform these steps:

  1. Choose Logs in the navigation pane, and then select the name of the configured log group (the default name is CloudTrail/DefaultLogGroup).

Amazon Athena

Amazon Simple Storage Service (Amazon S3) archived log files

You can see all events captured by CloudTrail in the Amazon S3 log files. You can manually parse the log files from the S3 bucket by using the CloudTrail Processing Library, the AWS CLI, or send logs to an AWS CloudTrail Partner.

As an alternative to searching for events in the CloudWatch console, you can use the AWS CLI command filter-log-events. You can also use metric filters to search for and match terms, phrases, and values in your log events, and transform the terms, phrases, and values into CloudWatch metrics and alarms. For more information, see Filter and Pattern Syntax.

Note: If you are using AWS CLI and are planning to use filter-log-events on a large scale (for example, automation or a script), consider using subscription filters, because filter-log-events has API limits. For more information about filter-log-events and its limitations, see CloudWatch Logs Limits. Subscription filters have no such limitation, and they provide the ability to process large amounts of log data in real time.

相關推薦

Use CloudTrail to Review What Actions Occurred In Your AWS Account

AWS CloudTrail enables you to view and track API calls made to your account. CloudTrail data can be accessed with the AWS Management

Spotting a million dollars in your AWS account · Segment Blog

Recently we shared the techniques we used to save more than a million dollars annually on our AWS bill. While we went into detail about the various problem

Transfer your AWS Account to Another Person or Business

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

[Nuxt] Use Vuex Actions to Delete Data from APIs in Nuxt and Vue.js

export begin async delet tin remove todo ras alt You‘ll begin to notice as you build out your actions in Vuex, many of them will look qui

An exception has occurred, use %tb to see the full traceback.

An exception has occurred, use %tb to see the full traceback. ipykernel_launcher.py: error: unrecognized argumen 當jupyter notebook使用parser=argpars

[WASM Rust] Use the js-sys Crate to Invoke Global APIs Available in Any JavaScript Environment

js-sys offers bindings to all the global APIs available in every JavaScript environment as defined by the ECMAScript standard. In this lesson, we wil

解決ROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use n

之前一直用的好好的,突然就出現了這個錯誤: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grou

mysql8.0版本  在已存在的表裡插入一條資料 insert INTO api_user(id,username,email,groups)VALUES('1','hh','[email protected]','Boss'); 執行報錯:1064 - You have an e

myBatis查詢報錯 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

myBatis查詢報錯    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

How To Use Retrofit Library In Your Android App

Retrofit library is a Type-safe REST client for android and Java, courtesy of Square Inc. Most modern android apps make HTTP requests to some remote s

Why (and how) to use eslint in your project

Why (and how) to use eslint in your projectThis story was written by Sam Roberts, a Senior Software Engineer at IBM Canada. It was first published in IBM d

Use script to speed file move in code refactory

When do code refactor, we will need to move files from lib to lib, when it comes to move a very common used file, we will need to change a lot of file

What Actions are Needed for Understanding Human Actions in Videos?

這篇論文並沒有提出或改進任何方法,而是通過各種小實驗,對目前視訊行為理解的各種資料庫和方法進行了細緻的討論和思考。 背景介紹 行為分類( Action Recognition) 是要給一段分割好的短視訊(通常只包含一段人類動作)進行動作種類的分類。 https://zhu

F013 What to expect from artificial intelligence in healthcare in the next 10 years?

One of the key targets Enlitic is focused on is early detection of lung cancer by combining biopsies along with existing medical data to be able to diagnos

4 Powerful Ways to Use AI in Your Advertising

Mike Kaput is a senior consultant at PR 20/20 who is passionate about AI's potential to transform marketing. At PR 20/20, he creates measurable marketing r

Ask HN: What would you like to learn in a programming school in your town?

I've been thinking on a way to help my local community, of beginners or really anyone that wants to learn how to be a programmer, to grow.Opening a small s

Why You Shouldn’t Use Facebook to Log In to Other Sites

This story is for Medium members.Continue with FacebookContinue with GoogleMedium curates expert stories from leading publishers exclusively for members (w

What’s New in Deep Learning Research: How Google Uses Reinforcement Learning to Ask All the Right…

What’s New in Deep Learning Research: How Google Uses Reinforcement Learning to Ask All the Right QuestionsThe ability of formulate questions is a fundamen

Ask HN: What are the spreadsheet use cases and pain points in your SAAS app

Excel / csv uploads are commonly used to get data into a saas app, is this a burden to implement for you?Do you use spreadsheets as part of workflows as we