<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Otel on Aidan Mitchell</title>
    <link>https://aidanmitchell.co.uk/tags/otel/</link>
    <description>Recent content in Otel on Aidan Mitchell</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 06 Apr 2026 11:52:36 +0100</lastBuildDate>
    <atom:link href="https://aidanmitchell.co.uk/tags/otel/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenTelemetry - Painlessly Ship Docker Container Logs to OpenObserve</title>
      <link>https://aidanmitchell.co.uk/posts/otel-ingest-docker-container-logs/</link>
      <pubDate>Mon, 06 Apr 2026 11:52:36 +0100</pubDate>
      <guid>https://aidanmitchell.co.uk/posts/otel-ingest-docker-container-logs/</guid>
      <description>&lt;p&gt;Using the &lt;em&gt;contrib&lt;/em&gt; release of the &lt;a href=&#34;https://hub.docker.com/r/otel/opentelemetry-collector-contrib&#34;&gt;OpenTelemetry Collector&lt;/a&gt; (&lt;a href=&#34;https://github.com/open-telemetry/opentelemetry-collector-contrib&#34;&gt;GitHub&lt;/a&gt;) container, you can ship the standard JSON Lines logs generated by the Docker engine to OpenObserve using a container in the self-same stack. This approach is not ideal for a serious production or enterprise deployment but will be sufficient if you have a simple self-hosting use case like mine.&lt;/p&gt;
&lt;p&gt;The Docker engine writes the stdout and stderr logs from containers (i.e. the output of &lt;code&gt;docker logs &amp;lt;container_id/container_name&amp;gt;&lt;/code&gt;) to &lt;code&gt;/var/lib/docker/containers&lt;/code&gt;. This directory will contain a directory per container, named for the 64-char hexadecimal container ID, and a log file in each subdirectory named &lt;code&gt;&amp;lt;container_id&amp;gt;-json.log&lt;/code&gt;. OTEL Collector &lt;em&gt;contrib&lt;/em&gt; is needed to get access to the &lt;code&gt;filelog&lt;/code&gt; receiver with support for the &lt;code&gt;docker&lt;/code&gt; format.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
