Menu
Datadog Blog·September 23, 2026

Real-time Log Parsing and Data Extraction for Observability Platforms

Datadog's Tap to Parse feature enhances observability by enabling dynamic extraction of custom fields from unstructured logs. This capability is crucial for systems that ingest diverse log formats, allowing operators to rapidly derive insights without predefined schemas, thereby improving troubleshooting and monitoring in complex distributed environments.

Read original on Datadog Blog

The Challenge of Unstructured Logs in Distributed Systems

In modern distributed systems, services generate logs in myriad formats, often unstructured. This poses a significant challenge for observability platforms, as critical operational data might be buried within free-form text. Traditional log management often requires pre-configuration of parsing rules, which can be time-consuming and inflexible, especially when dealing with new services, evolving log formats, or on-the-fly debugging needs. Efficiently extracting meaningful, searchable fields from this raw data is key to effective monitoring and troubleshooting.

Datadog's Tap to Parse: On-Demand Field Extraction

Tap to Parse addresses this by allowing users to interactively define parsing rules directly within the Log Explorer, Log Pipelines, or Observability Pipelines. This dynamic capability enables the extraction of custom attributes from unstructured log lines, converting them into structured, searchable fields. For system designers, this highlights the importance of flexible data ingestion and processing layers that can adapt to varying data schemas post-ingestion. Such features reduce the operational overhead associated with schema changes and facilitate rapid incident response.

💡

Design Consideration: Schema-on-Read vs. Schema-on-Write

The Tap to Parse feature exemplifies a "schema-on-read" approach for log analysis. While many systems enforce a "schema-on-write" during data ingestion (e.g., relational databases), adopting schema-on-read for analytics data, like logs, offers greater flexibility. This allows raw data to be stored as-is and parsed only when queried, adapting to evolving needs without re-ingesting or re-processing historical data.

Architectural Implications for Observability Platforms

  • Dynamic Rule Application: The system must support applying parsing rules dynamically, potentially on a subset of ingested data or at query time, without disrupting existing data pipelines.
  • Scalable Storage and Indexing: Efficient storage and indexing mechanisms are critical to handle both raw log data and the newly extracted fields at scale. This often involves inverted indexes for full-text search and specialized indexes for structured fields.
  • User Interface for Rule Definition: A robust UI/UX is essential for users to intuitively define and test parsing rules, which often involves regular expressions or other pattern matching techniques.

Implementing such a feature requires a sophisticated logging pipeline that can: ingest high volumes of diverse log data; provide a powerful query engine capable of real-time parsing and filtering; and store both raw and partially structured data efficiently. The ability to modify data views and extract new fields on demand significantly enhances the platform's utility for debugging and operational intelligence.

observabilityloggingdata extractionparsingmonitoringdistributed systemscloud platformsdatadog

Comments

Loading comments...