AWS CloudTrail Cost Optimization: Remove Redundant Trails
Learn how to find and eliminate unnecessary trails to reduce AWS CloudTrail costs and optimize your organization's spending.
Learn how to find and eliminate unnecessary trails to reduce AWS CloudTrail costs and optimize your organization's spending.
The AWS CloudTrail service allows developers to enable policies managing compliance, governance, and auditing of their AWS account. In addition, AWS CloudTrail offers logging, monitoring, and storage of any activity around actions related to your AWS structures. The service activates from the moment you set up your AWS account and while it provides real-time activity visibility, it also means higher AWS costs.
To keep costs from rising faster than you need to, you can start cleaning up by finding and eliminating redundant trails.
When you have multiple trails recording the same management events in an AWS region, your CloudTrail expenses will increase. Avoid spending more money than you need to by looking at your settings to ensure that CloudTrail isn’t logging unnecessary copies of management events.
The first management event for each account is free. After that, any additional trails created that offer the same functionality to other destinations result in new CloudTrail charges. Sometimes this is preferable if you want to allow different groups to receive individual copies of log files.
The following applies if you have multiple single region trails setup within your AWS account:
If you find multiple duplications, you can adjust your account through the AWS CLI.
You should see the changes reflected in the metadata output. Repeat the steps for each region you wish to adjust.
You can also take steps to limit the number of events that get logged to your trail. These are a couple high-volume exclusions you can set up to mitigate costs:
Please note that you can only filter out events if you set up your trail to log management events.
If you are running AWS CloudTrails in multiple regions, then running these checks and updates on a regular basis might seem impractical or inefficient.
With Blink, you can run this check with an automation like this one:
This automation is available in the Blink library. When it runs, it does the following steps:
This simple automation is easy to customize. Run it on a schedule or send the report via Slack or Teams.
There are over 5K automations in the Blink library to choose from, or you can build your own to match your unique needs.
Get started with Blink today and see how easy automation can be.
Blink is secure, decentralized, and cloud-native. Get modern cloud and security operations today.