Skip to content

Calculate the cost of Aurora logs kept in log stream

0

Hi,

We currently have a large volume of Aurora logs kept in CloudWatch log stream, I want to calculate the cost of creation of Aurora logs, it's movement and then it's storage. How do I do this?

1 Answer
0

To calculate the cost of Aurora logs in CloudWatch log streams, you need to consider three main components:

1. Data Ingestion Cost: CloudWatch Logs charges for data ingestion at $0.50 per GB for logs ingested into the service.

2. Data Storage Cost: CloudWatch Logs charges $0.03 per GB per month for storing your log data.

3. Data Movement Cost (if using Firehose): If you're moving Aurora logs from CloudWatch Logs to Amazon S3 using Amazon Kinesis Data Firehose, there's an additional cost. Firehose charges $0.029 per GB, and importantly, it bills in 5KB increments - meaning any record less than 5KB is billed as 5KB.

For example, if your log records are 0.2 KB each, the Firehose cost would be calculated as: Firehose Cost = $0.029 per GB × N GB/day × (5KB/0.2KB)

This multiplier accounts for the billing increment difference between your actual log size and the minimum billable unit.

To calculate your total cost, you'll need to:

  • Determine your daily log volume in GB
  • Multiply by the ingestion rate for creation costs
  • Multiply by the storage rate for retention costs
  • If applicable, calculate the Firehose transfer costs using the formula above, accounting for your actual log record size

The costs will accumulate over time, with storage costs being billed monthly based on how long you retain the logs.
Sources
Cost - Centralized Logging with OpenSearch
Building a .NET Log Analysis System using Amazon Bedrock | .NET on AWS Blog

answered 9 months ago

AWS
EXPERT

reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.