# Parsing JSON-structured Docker logs with the OpenTelemetry Collector

DevFeed: [Parsing JSON-structured Docker logs with the OpenTelemetry Collector](<https://devfeed.tech/articles/parsing-json-structured-docker-logs-with-the-opentelemetry-collector-90027.md>)

Original publisher: [Read original article](<https://dev.37signals.com/parsing-json-docker-logs-with-opentelemetry-collector/>)

Author: Lewis Buckley

Published: 2026-10-19T17:00:00Z

Content type: tutorial

Language: en

Sources: [37signals Dev](<https://devfeed.tech/sources/37signals-dev.md>)

Topics: [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [infrastructure monitoring](<https://devfeed.tech/topics/infrastructure-monitoring.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Docker](<https://devfeed.tech/topics/docker.md>)

Tags: [docker](<https://devfeed.tech/tags/docker.md>), [json](<https://devfeed.tech/tags/json.md>), [logs](<https://devfeed.tech/tags/logs.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [opentelemetry-collector](<https://devfeed.tech/tags/opentelemetry-collector.md>), [parsing](<https://devfeed.tech/tags/parsing.md>)

## AI overview

The article explains how to configure the OpenTelemetry Collector's filelog receiver to process Docker JSON logs. It describes unwrapping Docker's JSON envelope, filtering plain-text lines, recombining entries split at 16KB boundaries, and parsing the application's JSON. It also details two configuration mistakes that caused lost logs and how sample-file checks exposed them.

## Source excerpt

How we use the filelog receiver's operator chain to parse, recombine, and route JSON-structured log lines from Docker containers.