cw and ct
cw and ct
2. What is cloudtrail?
AWS CloudTrail is an auditing, compliance monitoring, and governance tool from Amazon Web
Services (AWS). It’s classed as a “Management and Governance” toola in the AWS console.
With CloudTrail, AWS account owners can ensure every API call made to every resource in their
AWS account is recorded and written to a log. An API call can be made:
Human users (e.g. when someone spins-up an EC2 instance from the console)
Applications (e.g. when a bash script calls an AWS CLI command)
another AWS service (e.g. when a Lambda function writes to an S3 bucket)
CloudTrail saves the API events in a secured, immutable format which can be used for later
analysis.
There are two prevalent AWS logging and monitoring services: CloudTrail
and CloudWatch. CloudWatch monitors AWS resources, while CloudTrail
monitors actions in the AWS environment. Despite the considerable
differences between them, integrating CloudWatch and CloudTrail allows us
to better manage our AWS environments. For example, you can send
notifications using the Amazon Simple Notification Service ( SNS) whenever
an authorization failure occurs in your AWS account.
This article will provide a deeper look into both CloudTrail and CloudWatch.
We will also explore how these services can complement each other to
provide finer control over your AWS infrastructure.
The table below provides a formal definition of AWS CloudWatch and AWS
CloudTrail and describes their basic features. In-depth discussions of AWS
CloudTrail and AWS CloudWatch and techniques for their use as an
integrated service are provided later in this article.
4. cw rull::schedule n event
CloudWatch agent allows you to collect more system-level metrics from your EC2 and on-
premises servers than just the standard CloudWatch metrics. It also enables you to retrieve
custom metrics from your applications or services using the StatsD and collectd protocols.
Threshold-->alarm-->action-->SNS,AS,Lambda,Ansible...
---------------------------------------------------------
=====================================================