<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Loki_chunks_size</id>
	<title>Loki chunks size - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Loki_chunks_size"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Loki_chunks_size&amp;action=history"/>
	<updated>2026-05-10T18:42:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Loki_chunks_size&amp;diff=5571&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;Loki’s Azure “blobs” are really just the compressed **chunks** of log entries that the Ingester flushes to your `&lt;container&gt;/chunks/&lt;tenant-ID&gt;/…` path. The **size** o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Loki_chunks_size&amp;diff=5571&amp;oldid=prev"/>
		<updated>2025-07-07T16:09:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Loki’s Azure “blobs” are really just the compressed **chunks** of log entries that the Ingester flushes to your `&amp;lt;container&amp;gt;/chunks/&amp;lt;tenant-ID&amp;gt;/…` path. The **size** o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Loki’s Azure “blobs” are really just the compressed **chunks** of log entries that the Ingester flushes to your `&amp;lt;container&amp;gt;/chunks/&amp;lt;tenant-ID&amp;gt;/…` path. The **size** of each blob is controlled by Loki itself, not by Azure:&lt;br /&gt;
&lt;br /&gt;
* **`chunk_target_size`** (default \~1 MiB) tells Loki roughly how big to let a chunk grow before flushing.&lt;br /&gt;
* **`max_chunk_age`** (default 1 h) forces a flush once a chunk has been open for that long, even if it hasn’t hit `chunk_target_size`.&lt;br /&gt;
* **`chunk_idle_period`** (default 1 h) flushes any stream that hasn’t received new entries in that window.&lt;br /&gt;
  You tune these under your Ingester config (`ingester.chunk_target_size`, `ingester.max_chunk_age`, etc.) in `loki.yaml` or via Helm values ([medium.com][1]).&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
### What Azure does under the covers&lt;br /&gt;
&lt;br /&gt;
When Loki hands off a chunk file to Azure, it uses the **Block Blob** API. Azure will automatically break any upload into blocks (up to 50 000 blocks per blob) and stitch them together:&lt;br /&gt;
&lt;br /&gt;
* The **max block size** and **max blob size** are governed by the Storage service version—e.g. service 2019-12-12+ supports up to 4000 MiB per block and \~190 TiB per blob ([learn.microsoft.com][2]).&lt;br /&gt;
* Loki’s client-side buffer controls (e.g. `azure.upload_buffer_size`, default 256 KiB) simply govern how much of the chunk is read/streamed per block upload; they do **not** change the logical size of your chunk blob ([techdocs.akamai.com][3]).&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
### Bottom line&lt;br /&gt;
&lt;br /&gt;
* **To change blob sizes**, adjust Loki’s chunk‐flush settings (`chunk_target_size`, `max_chunk_age`, etc.).&lt;br /&gt;
* **You cannot** alter Azure’s internal block-splitting behavior via Loki—it’s handled by the Azure SDK/service.&lt;br /&gt;
* The only other knobs are the SDK buffer sizes (`upload_buffer_size`, `download_buffer_size`), which affect upload/download performance but **not** the chunk‐blob’s overall size.&lt;br /&gt;
&lt;br /&gt;
[1]: https://medium.com/django-unleashed/get-visibility-into-your-docker-container-logs-with-grafana-loki-of-a-django-application-9584bddfe540 &amp;quot;Get Visibility into Your Docker Container Logs with Grafana Loki of a Django Application. | Jan, 2023 | Medium | Django Unleashed&amp;quot;&lt;br /&gt;
[2]: https://learn.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs?utm_source=chatgpt.com &amp;quot;Understanding block blobs, append blobs, and page blobs&amp;quot;&lt;br /&gt;
[3]: https://techdocs.akamai.com/cloud-computing/docs/using-grafana-loki-with-object-storage?utm_source=chatgpt.com &amp;quot;Use Grafana Loki with Object Storage - Akamai TechDocs&amp;quot;&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>