Welcome to Chronicles, let's explore AWS Cloudtrail
Description:
AWS CloudTrail is a AWS service that helps you enable operational and risk auditing, governance, and compliance of your AWS account. Actions taken by a user, role, or an AWS service are recorded as events in CloudTrail. Events include actions taken in the AWS Management Console, AWS Command Line Interface, and AWS SDKs and APIs.
CloudTrail is enabled on your AWS account when you create it. When activity occurs in your AWS account, that activity is recorded in a CloudTrail event. You can easily view recent events in the CloudTrail console by going to Event history. For an ongoing record of activity and events in your AWS account, create an event data store or create a trail. For more information about CloudTrail pricing, see AWS CloudTrail Pricing.
Working:
-
Log in to your AWS Management Console and navigate to the CloudTrail service.
-
Click on the "Create trail" button to create a new CloudTrail trail.
-
Choose a name for your trail and select the region where you want to store your CloudTrail logs.
-
Decide which events you want to log. You can log all events or select specific ones based on the services and resources you want to track.
-
Choose a storage location for your logs. You can store them in an S3 bucket, a CloudWatch Logs group, or both.
-
Choose any additional options you want to enable, such as log file validation or cloud watch event delivery.
-
Review your settings and click "Create trail" to create your CloudTrail trail.
-
Once your trail is created, you can view and manage it from the CloudTrail dashboard. You can also configure CloudWatch alarms to notify you when certain events occur or when your log storage reaches a certain capacity.
-
To test your CloudTrail configuration, perform some actions in your AWS account that will generate CloudTrail logs, such as creating a new EC2 instance or modifying a security group.
-
Navigate to your S3 bucket or CloudWatch Logs group to view your CloudTrail logs. You should see a log file for each event that was generated in your account.
Congratulations!! You have successfully explored the features of AWS Cloudtrail.