Design an LLM Log Parsing Workflow

Quick Overview

This question evaluates skills in ML-enabled log parsing, schema inference, structured data extraction, and designing scalable, reliable production workflows that combine probabilistic LLMs with deterministic parsers and operational engineering.

Design an LLM Log Parsing Workflow

Company: Cribl

Role: Software Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Technical Screen

Design a production workflow that uses an LLM, optionally combined with deterministic parsers, to convert heterogeneous raw log messages into structured JSON fields. The system must support multiple log formats whose schemas may be very different. Example 1: access log input: ```text 192.168.1.1 - - [10/Oct/2023:13:55:36 +0000] "GET /index.html HTTP/1.1" 200 1024 "http://example.com/start.html" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)" ``` Expected structured output: ```json { "src_ip": "192.168.1.1", "time": "10/Oct/2023:13:55:36 +0000", "http_method": "GET", "path": "/index.html", "protocol": "HTTP/1.1", "response_code": 200, "duration": 1024, "url": "http://example.com/start.html", "userAgent": "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)" } ``` Example 2: error log input: ```text [Tue Oct 10 13:55:36 2023] [error] [pid 12345] [client 192.168.1.1:12345] File does not exist: /var/www/html/favicon.ico ``` This log should produce a different schema, for example fields such as `timestamp`, `level`, `pid`, `client_ip`, `client_port`, and `error_message`. Discuss the architecture, data flow, schema inference, extraction strategy, validation, scaling, reliability, monitoring, privacy, and how you would evaluate quality.

Quick Answer: This question evaluates skills in ML-enabled log parsing, schema inference, structured data extraction, and designing scalable, reliable production workflows that combine probabilistic LLMs with deterministic parsers and operational engineering.

|Home/ML System Design/Cribl
Cribl logo
Cribl
Jan 28, 2026, 12:00 AM
mediumSoftware EngineerTechnical ScreenML System Design
2
0

Design a production workflow that uses an LLM, optionally combined with deterministic parsers, to convert heterogeneous raw log messages into structured JSON fields.

The system must support multiple log formats whose schemas may be very different.

Example 1: access log input:

192.168.1.1 - - [10/Oct/2023:13:55:36 +0000] "GET /index.html HTTP/1.1" 200 1024 "http://example.com/start.html" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"

Expected structured output:

{
  "src_ip": "192.168.1.1",
  "time": "10/Oct/2023:13:55:36 +0000",
  "http_method": "GET",
  "path": "/index.html",
  "protocol": "HTTP/1.1",
  "response_code": 200,
  "duration": 1024,
  "url": "http://example.com/start.html",
  "userAgent": "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"
}

Example 2: error log input:

[Tue Oct 10 13:55:36 2023] [error] [pid 12345] [client 192.168.1.1:12345] File does not exist: /var/www/html/favicon.ico

This log should produce a different schema, for example fields such as timestamp, level, pid, client_ip, client_port, and error_message.

Discuss the architecture, data flow, schema inference, extraction strategy, validation, scaling, reliability, monitoring, privacy, and how you would evaluate quality.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...