InterviewDB Question

String Extraction: Parse and Extract Structured Fields from a Raw Log String

Question Details

Problem You receive raw log lines from a server. Each line follows this pattern: Write a function that parses a log line and returns a dict with keys: level, timestamp, fields (dict of key-value pairs), and message. Example: Follow-ups What happens i…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone Strings