InterviewStack.io LogoInterviewStack.io

Log Analysis and Diagnostic Data Gathering Questions

Extracting signal from existing logs and diagnostic output to find a root cause: parsing and querying log data, correlating traces and metrics during an investigation, and gathering the right diagnostic information (including asking clarifying questions) before drawing conclusions. Covers text-processing and query techniques for locating evidence in logs (structured log parsing, ElasticSearch/SQL-style log queries, log aggregation and retention trade-offs) and reconstructing a timeline from the data on hand. This is the analysis-of-existing-data skill used during troubleshooting and investigation across infrastructure and operations roles: distinct from monitoring and observability, which is about instrumenting a system so telemetry exists in the first place (see the observability topics for that), and distinct from SIEM-based security detection and formal digital-forensics practice (chain of custody, artifact/disk/memory analysis), which have their own dedicated coverage elsewhere in the catalog.

HardTechnical
32 practiced

During a multi-region outage logs are inconsistent due to clock skew and some traces were dropped. How would you perform a forensic reconstruction to determine a reliable timeline and root cause? Describe data sources you'd use, how to correlate events across systems, and methods to indicate confidence levels in your findings.

MediumTechnical
37 practiced

You're ingesting about 1TB/day of logs, and leadership wants a 60% reduction in storage cost without losing the ability to investigate security incidents that only come to light weeks later. Walk through how you'd get there, and lay out a concrete retention policy that treats security logs, access logs, and debug logs differently.

EasyTechnical
42 practiced

You receive application logs as JSON lines with fields like ts (ISO8601), level, user_id, action, latency_ms (example shown as text: ts=2024-03-10T14:12:05Z level=info user_id=123 action=login latency_ms=42). Provide:

  1. A jq command (or short Python snippet) to compute counts of 'login' actions per minute
  2. A method to compute p95 latency for 'search' actions
  3. A filter to output events where user_id is missing

Explain assumptions about timezone handling and malformed JSON.

HardTechnical
33 practiced

After a critical outage you discover that some logs were lost due to a rotation misconfiguration. Describe the forensic investigation steps you would take: evidence preservation, reconstructing timelines, correlating remaining traces and metrics, and long-term fixes to logging and retention to prevent recurrence.

EasyTechnical
32 practiced

Describe a small utility or automation (pseudocode or high-level steps) you would implement in Python to scan metrics or logs and identify the top services with rising error rates over a sliding 24-hour window. State inputs, outputs, aggregation method, and threshold logic.

Unlock Full Question Bank

Get access to all 28 Log Analysis and Diagnostic Data Gathering interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.