By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Amazon CloudWatch Cost for a log group

0

Hello, what's the opinion on saving costs for an Amazon CloudWatch log group that runs close to a TB and is queried once in a month, which makes it a very expensive query. The CloudWatch log group is storing all the logs and is constantly growing. The logs can not be purged for posterity and at times the queries have to be run so logs have to be available. Thanks in advance for the help.

2 Answers
3

This sounds like a good use-case for the Cloudwatch infrequent access log class. Take a look at our blog-post on this topic here.

profile pictureAWS
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago
2
Accepted Answer

Since you're saying the amount of log data is constantly growing, have you considered exporting the logs to S3 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3Export.html) and analysing them with Athena?

I appreciate that preferences vary, but personally, I much prefer Athena and SQL in general for querying and reporting on data, and S3 tends to be much more flexible than CW Logs for storing and processing data in a cost-conscious manner.

EXPERT
answered 5 months ago
profile picture
EXPERT
reviewed 5 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.

Guidelines for Answering Questions