Every log line, metric, and trace your systems emit is a bet that something will one day go wrong. Most of those bets never pay out. The log nobody reads, the metric nobody alarms on, the trace from a request that completed perfectly. All of it is exhaust, the diagnostic byproduct a system gives off simply by running, and AWS meters every gram of it whether you ever look or not.
That is the trap of observability: it looks worthless until the one incident where you need it, so the instinct is to capture it all and keep it forever. Leave DEBUG logging on, let Standard log groups keep everything forever by default, and fire a custom-metric API call per event, and the monster you built to watch production grows bigger than production itself.
Below are three of the most common AWS observability cost traps, each with the exact fix, followed by the bigger levers worth checking once the quick wins are done.
The Default Log Class & Infinite Retention Tax
When you provision an Amazon CloudWatch Log Group, AWS applies two costly defaults: the log group class defaults to Standard, and retention defaults to Never Expire.
CloudWatch Logs Standard costs about $0.50 per GB ingested, $0.03 per GB-month stored, and $0.005 per GB scanned by Logs Insights (us-east-1). Standard is the right choice for logs that need real-time alarming, metric filters, subscription filters, or Live Tail. It is overkill for high-volume diagnostic workloads like VPC Flow Logs, WAF traffic logs, S3 access logs, or routine container debug output that nobody looks at until something breaks.
The lever here is the Infrequent Access log class, which AWS now calls Essentials (formerly Infrequent Access) in the console and docs. The Terraform/API value is still INFREQUENT_ACCESS. It saves less than you might think:
- IA cuts the ingestion price roughly in half (about $0.25 vs $0.50 per GB). Ingestion is the line item that usually dominates a high-volume log bill, so this is the real win.
- IA does not change storage or Logs Insights query pricing. Those are identical in both classes. So you still need a retention policy.
- IA is a feature subset. It drops metric filters, subscription filters, Live Tail, and metric-filter-based alarms. Use it only for logs you will query after the fact (via Logs Insights), not logs you alarm on or stream elsewhere in real time. If you need a subscription filter to forward these logs, IA is the wrong class. Logs Insights still works on IA log groups, with a small exception: the pattern, diff, and unmask query commands are not supported there.

The Fix: Infrequent Access Class with Explicit Retention
Put high-volume, query-only log groups on the INFREQUENT_ACCESS class and set an explicit retention window (because the real waste is Never-Expire, and IA does not discount storage).
resource "aws_cloudwatch_log_group" "vpc_flow_logs" {
name = "/aws/vpc/flow-logs"
# FinOps Fix: ~50% lower INGESTION price ($0.25 vs $0.50/GB).
# Note: storage and Logs Insights query prices are the SAME as Standard,
# and IA drops metric filters, subscription filters, Live Tail, and
# metric-filter alarms. Use only for logs you query after the fact.
# WARNING: changing log_group_class on an EXISTING log group forces
# destroy-and-recreate and loses the logs. Set it at creation, or migrate
# deliberately. Valid values: STANDARD | INFREQUENT_ACCESS | DELIVERY
# (the console/docs now label INFREQUENT_ACCESS as "Essentials").
log_group_class = "INFREQUENT_ACCESS"
# FinOps Fix: Never-Expire is the costly default; IA does NOT discount
# storage, so an explicit retention window still does the heavy lifting.
retention_in_days = 30
}
If you would rather not hand-pick a class per log group, CloudWatch Logs Intelligent Tiering reclassifies logs automatically based on access patterns, a more hands-off alternative to choosing IA manually. Note that services like VPC Flow Logs and WAF delivered into CloudWatch are billed at the vended-logs ingestion rate, so the IA class (where supported for the destination) is exactly aimed at your biggest-volume sources.
Synchronous PutMetricData API Flooding
Application teams frequently build custom business and operational metrics (payment failure rates, queue depths, active user counters) by invoking the CloudWatch API directly from application code using the AWS SDK (boto3, the AWS SDK for Go, or Node.js).
Every call to PutMetricData incurs two charges: $0.01 per 1,000 API requests, and $0.30 per custom metric per month (first 10,000 metrics; it tiers down above that). If a high-throughput service makes a synchronous metric call per event across tens of millions of events a month, the API-request fees alone run into the hundreds or low thousands of dollars, while adding network latency and API-throttling risk to your application’s hot path.

The Fix: CloudWatch Embedded Metric Format (EMF)
Stop calling PutMetricData. Instead, adopt CloudWatch Embedded Metric Format (EMF): write your telemetry as a structured JSON object (carrying the _aws metadata block) to standard output. CloudWatch Logs recognizes the EMF structure and extracts the custom metric automatically and asynchronously. In AWS Lambda, anything you write to stdout goes straight to CloudWatch Logs, so no agent is involved; on EC2, ECS, or on-premises, the CloudWatch agent is what ships the EMF log to CloudWatch Logs for extraction. Either way, you get high-resolution custom metrics without paying the PutMetricData API fee.
EMF isn’t free, though. It eliminates the per-request API fee ($0.01/1,000) and the synchronous latency and throttling risk, but the EMF JSON is written to CloudWatch Logs, so you still pay standard log ingestion for those payloads, and the $0.30 per-custom-metric-per-month charge still applies. For very high-cardinality metrics, EMF log-ingestion cost can become the dominant line item on its own, so keep dimension cardinality in check.
import json
import time
def emit_business_metric(service_name: str, orders_processed: int, latency_ms: float):
# FinOps Fix: CloudWatch extracts the metric from stdout at $0.00 API cost.
# You still pay log ingestion for this JSON + $0.30/custom-metric/month.
emf_payload = {
"_aws": {
"Timestamp": int(time.time() * 1000),
"CloudWatchMetrics": [
{
"Namespace": "Ecommerce/Checkout",
"Dimensions": [["ServiceName"]],
"Metrics": [
{"Name": "OrdersProcessed", "Unit": "Count"},
{"Name": "ProcessingLatency", "Unit": "Milliseconds"}
]
}
]
},
"ServiceName": service_name,
"OrdersProcessed": orders_processed,
"ProcessingLatency": latency_ms
}
# In Lambda: written to stdout -> CloudWatch Logs extracts the metric (no agent).
# On EC2/ECS/on-prem: the CloudWatch agent ships this log line for extraction.
print(json.dumps(emf_payload))
The Amazon OpenSearch Hot EBS Hoarding Pit
Organizations running centralized log analytics often stream CloudWatch logs into an Amazon OpenSearch Service cluster.
To keep queries fast, OpenSearch clusters run on hot data nodes backed by dedicated Amazon EBS volumes. The trap is retaining months of historical indices on those hot nodes. A security or operations team may need to search 90 days of access logs during an audit, but queries older than a week are a tiny fraction of daily search activity. Paying hot-tier rates for cold, rarely-touched indices is one of the fastest ways to push an OpenSearch footprint into the multi-thousand-dollar range.

The Fix: Index State Management (ISM) Policies
Implement native OpenSearch Index State Management (ISM) to tier indices automatically: hot to S3-backed UltraWarm after 7 days, to Cold Storage after 30, and delete after 90. AWS puts UltraWarm at close to 90% cheaper per GB than hot, and Cold cheaper still. Design around these trade-offs:
- UltraWarm is read-only (fine for immutable logs) and queryable through the normal OpenSearch API.
- Cold indices are not instantly searchable. To query them you first rehydrate back into UltraWarm (a few minutes), investigate, then let them age back out. And once an index is in Cold, the standard delete action no longer applies: you must use cold_delete, which the policy below reflects.
- ISM can only migrate indices to Cold if your documents carry an explicit timestamp field (for example @timestamp). The cold_migration action references that field, which is why the policy below sets it. Without it, the cold transition fails.
{
"policy": {
"description": "FinOps Fix: Automatically tier log indices hot -> warm -> cold -> delete",
"schema_version": 1,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{ "state_name": "warm", "conditions": { "min_index_age": "7d" } }
]
},
{
"name": "warm",
"actions": [ { "warm_migration": {} } ],
"transitions": [
{ "state_name": "cold", "conditions": { "min_index_age": "30d" } }
]
},
{
"name": "cold",
"actions": [ { "cold_migration": { "timestamp_field": "@timestamp" } } ],
"transitions": [
{ "state_name": "delete", "conditions": { "min_index_age": "90d" } }
]
},
{
"name": "delete",
"actions": [ { "cold_delete": {} } ],
"transitions": []
}
]
}
}
Conclusion
Put query-only bulk logs on the Infrequent Access class with real retention, replace synchronous metric API calls with Embedded Metric Format, and tier OpenSearch indices automatically with ISM. Then look at the bigger levers: metric resolution, trace sampling, and third-party agent egress.
Start with your largest log group: check its log class and its retention setting today.
Scale with Automat-it FinOps
Speak with Tamir and the Automat-it FinOps team to benefit from cost optimization built on years of AWS expertise and experience working with similar companies.