InterviewLegend

Log-Stream Parsing

Alex Chen30 min readUpdated 74 real interview reports

If the filesystem walk is the coding shape Datadog asks most, this is the one that's most theirs. A stream of log lines arrives, you hold a set of search queries, and your job is to report which logs match which queries as they come through. Candidates describe it as "parse query L, Q and show matching q in a list of logs," and several name a Premium question framing outright. A substring check gets you the warm-up. The interview is the four follow-ups stacked on top. That's the real test.

You're reimplementing a feature Datadog ships. A Premium question streams logs through the browser in real time and lets you filter them with a query as they fly past. To the interviewer, the prompt is a scaled-down version of a system they run at enormous volume. The follow-ups push on exactly the parts that get hard there: case handling, queries that come and go over time, and keeping the matcher fast when both the query set and the stream are large.

What's inside
  • 2 problems, worked step by step
  • about 30 min

Premium lessonDatadog interview guide

These took digging.

What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.

100 companies. Checked every month.

Unlock all 100 companies

$49 a year · less than $1 a week · Cancel anytime

Had your Datadog interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Datadog interview guide

Know what Datadog asks before you walk in.

11 coding · 4 system design · 30 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.