<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rumen Mazhdrakov</title>
    <description>The latest articles on DEV Community by Rumen Mazhdrakov (@gwynbleidd).</description>
    <link>https://dev.to/gwynbleidd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274440%2Fd13b7bbf-2333-49b6-9aa6-b237a69e73f9.jpg</url>
      <title>DEV Community: Rumen Mazhdrakov</title>
      <link>https://dev.to/gwynbleidd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gwynbleidd"/>
    <language>en</language>
    <item>
      <title>Datadog log costs, explained</title>
      <dc:creator>Rumen Mazhdrakov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:17:04 +0000</pubDate>
      <link>https://dev.to/gwynbleidd/datadog-log-costs-explained-11kc</link>
      <guid>https://dev.to/gwynbleidd/datadog-log-costs-explained-11kc</guid>
      <description>&lt;p&gt;Datadog bills logs on two separate meters. Almost every surprise on a Datadog log invoice comes from the second one, so it pays to understand both before you look at your volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two meters: ingest and indexing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ingest&lt;/strong&gt; is charged per GB of uncompressed log data you send: $0.10 per GB, the same on every billing plan. It covers processing, Live Tail and forwarding to your own archive, and it applies to every log you send, whether you later keep it or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Indexing&lt;/strong&gt; is what makes a log searchable, usable in dashboards and able to fire alerts. It is charged per million log events, not per GB, and the rate depends on how long the index keeps them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Index retention&lt;/th&gt;
&lt;th&gt;Annual commitment&lt;/th&gt;
&lt;th&gt;Month-to-month&lt;/th&gt;
&lt;th&gt;On-demand&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3 days&lt;/td&gt;
&lt;td&gt;$1.06&lt;/td&gt;
&lt;td&gt;$1.27&lt;/td&gt;
&lt;td&gt;$1.59&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 days&lt;/td&gt;
&lt;td&gt;$1.27&lt;/td&gt;
&lt;td&gt;$1.52&lt;/td&gt;
&lt;td&gt;$1.91&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15 days&lt;/td&gt;
&lt;td&gt;$1.70&lt;/td&gt;
&lt;td&gt;$2.04&lt;/td&gt;
&lt;td&gt;$2.55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 days&lt;/td&gt;
&lt;td&gt;$2.50&lt;/td&gt;
&lt;td&gt;$3.00&lt;/td&gt;
&lt;td&gt;$3.75&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Prices per million indexed events per month, from Datadog's public list prices, checked 30 November 2026. Retention beyond 30 days is a contract conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example
&lt;/h2&gt;

&lt;p&gt;Take a modest setup: 10 GB of logs a day, an average event of 1 KB, everything indexed for 15 days on an annual commitment.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;300 GB a month ingested, at $0.10: &lt;strong&gt;$30&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;300 GB at 1 KB per event is 300 million events, at $1.70 per million: &lt;strong&gt;$510&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Total: &lt;strong&gt;$540 a month&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Indexing is 94% of that bill. Halving your ingest volume saves $15; halving what you index saves $255. Every cost decision below is really a decision about indexing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://logcost.pages.dev/calculators/log-costs/?gb=10&amp;amp;ret=15&amp;amp;idx=100" rel="noopener noreferrer"&gt;See this scenario in the calculator&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why event size matters more than GB
&lt;/h2&gt;

&lt;p&gt;Because indexing counts events, two teams sending the same 300 GB a month can get very different bills. What changes is how many events those gigabytes contain.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Average event size&lt;/th&gt;
&lt;th&gt;Events per month&lt;/th&gt;
&lt;th&gt;Monthly total&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;250 bytes&lt;/td&gt;
&lt;td&gt;1,200M&lt;/td&gt;
&lt;td&gt;$2,070&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500 bytes&lt;/td&gt;
&lt;td&gt;600M&lt;/td&gt;
&lt;td&gt;$1,050&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 KB&lt;/td&gt;
&lt;td&gt;300M&lt;/td&gt;
&lt;td&gt;$540&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 KB&lt;/td&gt;
&lt;td&gt;150M&lt;/td&gt;
&lt;td&gt;$285&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same 300 GB a month, 15-day index, annual commitment.&lt;/p&gt;

&lt;p&gt;Short, chatty lines are the expensive kind: access logs, health checks, one-line debug statements from a hot loop. Structured JSON logs that carry context in one event cost less per useful fact than the same facts spread over five lines. If you are comparing Datadog with a vendor that bills per GB, convert with your real average event size, not a guess. Your Log Management usage page shows both GB and event counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retention is a price multiplier
&lt;/h2&gt;

&lt;p&gt;The same 300 million events cost $318 a month at 3-day retention and $750 at 30-day retention. That 2.4× spread is the biggest single lever most teams have, and it is set per index.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Index retention&lt;/th&gt;
&lt;th&gt;Indexing 300M events per month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3 days&lt;/td&gt;
&lt;td&gt;$318&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 days&lt;/td&gt;
&lt;td&gt;$381&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15 days&lt;/td&gt;
&lt;td&gt;$510&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 days&lt;/td&gt;
&lt;td&gt;$750&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The billing plan is the second multiplier. The 15-day rate is $1.70 with an annual commitment and $2.55 on-demand, 50% more for the same logs. If your volume is stable enough to commit, the commitment is worth more than most tuning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five settings that decide the bill
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Exclusion filters
&lt;/h3&gt;

&lt;p&gt;Each index can have exclusion filters that drop matching logs from the index, or sample them at a percentage. Excluded logs are still ingested and paid for at $0.10 per GB, and they still appear in Live Tail, can still generate metrics, and are still sent to your archive. You only skip the indexing charge.&lt;/p&gt;

&lt;p&gt;Good first candidates: load-balancer health checks, readiness probes, successful &lt;code&gt;200&lt;/code&gt; access logs, and debug logs from services that are not being debugged.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Separate indexes per retention
&lt;/h3&gt;

&lt;p&gt;Not every log needs the same retention. Datadog's own guidance is to split indexes by how long each kind of log is useful, for example errors and warnings in a 7-day index and sampled info logs in a 3-day index.&lt;/p&gt;

&lt;p&gt;Applied to the example above, with 10% of events being warnings or errors, 60% info sampled at 50%, and the remaining 30% excluded:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Warnings and errors: 30 million events at the 7-day rate, $38.10&lt;/li&gt;
&lt;li&gt;Sampled info: 90 million events at the 3-day rate, $95.40&lt;/li&gt;
&lt;li&gt;Ingest is unchanged at $30&lt;/li&gt;
&lt;li&gt;Total: &lt;strong&gt;$163.50 a month instead of $540&lt;/strong&gt;, about 70% less, with every error still searchable for a week&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Daily quotas
&lt;/h3&gt;

&lt;p&gt;A daily quota caps how many events an index stores per day. Once it is hit, new logs stop being indexed until the quota resets, but stay in Live Tail and archives. It is a guardrail against a noisy deploy doubling the month's bill, not a way to save money day to day. Set it with a warning threshold so you know before it trips.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Metrics instead of indexed logs
&lt;/h3&gt;

&lt;p&gt;If a log line only exists so you can count it (requests by status code, jobs completed), generate a metric from it at ingest and exclude the log from indexing. Log-based metrics are billed as custom metrics, so check that the metric's tag cardinality stays small.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Flex Logs and archives for long retention
&lt;/h3&gt;

&lt;p&gt;For logs you keep for audits or rare investigations, standard indexing is the wrong tool.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flex Logs&lt;/strong&gt; store events for months at a much lower rate: Flex Storage from $0.05 per million events a month, with query compute priced separately, or Flex Logs Starter at $0.60 per million with compute included for under 2 billion events a month. Starter has a 3-month minimum retention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Archives&lt;/strong&gt; to your own S3, GCS or Azure bucket are included in the ingest price. Getting logs back costs $0.10 per compressed GB scanned for rehydration, and the rehydrated events are then billed at your indexing rate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flex is the better fit when you search old logs regularly; archives when you almost never do.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this guide leaves out
&lt;/h2&gt;

&lt;p&gt;APM spans, Infrastructure hosts, Sensitive Data Scanner, Cloud SIEM and log forwarding to custom destinations all have their own meters. Negotiated contracts usually come in below list price, so treat every number here as a ceiling rather than a quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Estimate your bill
&lt;/h2&gt;

&lt;p&gt;I built a &lt;a href="https://logcost.pages.dev/calculators/log-costs/" rel="noopener noreferrer"&gt;log cost calculator&lt;/a&gt; that models ingest, the indexed share and every retention tier above, and puts the result next to New Relic, Grafana Cloud and Better Stack at the same volume. Some links on that site are affiliate links; the numbers come from public price lists either way.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.datadoghq.com/pricing/list/" rel="noopener noreferrer"&gt;Datadog price list&lt;/a&gt;, indexing tiers and Flex Logs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.datadoghq.com/pricing/?product=log-management" rel="noopener noreferrer"&gt;Datadog Log Management pricing&lt;/a&gt;, ingest, archives and rehydration&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.datadoghq.com/logs/log_configuration/indexes/" rel="noopener noreferrer"&gt;Datadog docs: indexes&lt;/a&gt;, exclusion filters and daily quotas&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.datadoghq.com/architecture/a-guide-to-log-management-indexing-strategies-with-datadog/" rel="noopener noreferrer"&gt;Datadog: log indexing strategies&lt;/a&gt;, splitting indexes by retention&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://logcost.pages.dev/guides/datadog-log-costs/" rel="noopener noreferrer"&gt;logcost.pages.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>logging</category>
      <category>monitoring</category>
      <category>observability</category>
    </item>
  </channel>
</rss>
