Softwr

Log Management · head to head

CloudWatch vs Loki

CloudWatch logo

CloudWatch

Log Management

AWS Monitoring and Observability

From
Free
Rated
-
Loki logo

Loki

Log Management

Like Prometheus but for Logs

From
Free
Rated
-

The short version

  • Each has a real cost: CloudWatch the free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB; Loki the Grafana Cloud free tier caps log ingestion at 50 GB a month with 14 day retention
  • They diverge on capability: CloudWatch covers Metrics collection, Loki covers Label-based indexing.

Where they differ

Only the attributes on which CloudWatch and Loki actually diverge.

Attributes where CloudWatch and Loki differ
AttributeCloudWatchLoki
Pricing modelusage-basedopen-source
Founded20062014

Identical on both: starting price (Free), free tier (Yes), platforms (Web, Api), user rating (Not yet rated), category (Log Management).

What each one covers

Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in CloudWatch

  • Metrics collection
  • Dashboards
  • Alarms and notifications

Only in Loki

  • Label-based indexing
  • Real-time log streaming
  • LogQL query language

Both cover

  • Log aggregation
  • API
  • Webhooks
  • REST
  • Web support
  • Api support

What people use each for

The jobs each tool is most often brought in to do.

CloudWatch

  • Metrics and log collection for AWS workloadsnot Loki
  • Alarming on thresholds across AWS servicesnot Loki
  • Querying logs with Logs Insightsnot Loki
  • Live tailing logs during an incidentnot Loki
  • Distributed tracing alongside X-Raynot Loki

Loki

  • Aggregating application and infrastructure logs with label based indexingnot CloudWatch
  • Querying logs alongside metrics in Grafananot CloudWatch

Where each one falls short

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

CloudWatch

  • The free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB
  • Custom metrics are $0.30 each for the first 10,000, so instrumenting broadly gets expensive before volume discounts apply
  • Each custom dashboard beyond the free three is $3 a month
  • Alarms are billed at $0.10 per alarm metric a month, with high-resolution alarms costing more
  • Log storage beyond the free 5 GB is $0.03 per GB per month on top of the ingestion charge

Loki

  • The Grafana Cloud free tier caps log ingestion at 50 GB a month with 14 day retention
  • Paid log pricing is split across three separate meters, at $0.050 per GB processed, $0.400 per GB written and $0.100 per GB retained
  • Retaining logs is billed separately from ingesting them, so keeping data costs on an ongoing basis rather than once
  • The Pro plan carries a $19 a month platform fee before any usage charges

Pricing, plan by plan

CloudWatch

Free
  • FreeFree
    • Metrics collection
    • Log aggregation
    • Dashboards

Loki

Free
  • FreeFree
    • Log aggregation
    • Label-based indexing
    • Real-time log streaming

Which should you pick?

Choose CloudWatch if

  • You need metrics collection.
  • You want to start without paying.
  • You work on Web, Api.
  • You also want dashboards.

Choose Loki if

  • You need label-based indexing.
  • You want to start without paying.
  • You work on Web, Api.
  • You also want real-time log streaming.

Questions people ask

Is CloudWatch or Loki better?
Neither clearly leads. CloudWatch starts at Free and Loki at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, CloudWatch or Loki?
CloudWatch starts at Free and Loki at Free.
Does CloudWatch or Loki run on more platforms?
Both run on Web, Api, so platform support will not decide this one for you.
Can I use CloudWatch for free?
Both have a free tier, so you can try either at no cost before committing.
What is CloudWatch best used for?
CloudWatch is most often used for metrics and log collection for aws workloads, alarming on thresholds across aws services, querying logs with logs insights, live tailing logs during an incident. Of those, metrics and log collection for aws workloads and alarming on thresholds across aws services are not what Loki is typically brought in for.
What can CloudWatch do that Loki cannot?
CloudWatch covers Metrics collection, Dashboards, Alarms and notifications. Loki covers Label-based indexing, Real-time log streaming, LogQL query language. Both handle Log aggregation, API, Webhooks, REST.

Related pages

Other head to heads