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.

EasyTechnical
34 practiced

Demonstrate practical journalctl usage: give commands and short explanations for the following tasks:

  1. List all boots and show the last boot's ID
  2. Show logs for unit nginx.service filtered to warning and above
  3. Follow logs in real time for a unit
  4. Export journal entries in JSON for downstream parsing

Also explain the significance of fields like _SYSTEMD_UNIT and _PID in the journal.

HardTechnical
32 practiced

You are given the following snippet from production logs and traces. Analyze the events and identify the most likely root cause and the immediate mitigation steps you would take. Logs:

2025-11-10T10:02:15.101Z service-A trace=abc123 request=R1 status=200 latency_ms=120
2025-11-10T10:02:15.201Z service-B trace=abc123 request=R1 status=500 error="DB timeout"
2025-11-10T10:02:15.301Z service-A trace=abc123 request=R1 status=200 retry=1
2025-11-10T10:02:16.000Z service-C trace=def456 request=R2 status=503

Provide a reasoned RCA hypothesis and at least three concrete verification steps and mitigations.

MediumTechnical
30 practiced

Write an ElasticSearch DSL query or SQL (pick one and state it) that finds users who experienced more than five HTTP 500 responses within any 10-minute window in the last 24 hours. Assume an index/table 'http_logs' with fields: timestamp (UTC), user_id, status_code, endpoint. Provide the query and explain assumptions about timestamp normalization and log completeness.

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.

HardTechnical
31 practiced

You're investigating a payment-processing incident and need to search production logs for the failing requests, but those logs contain full card numbers and other data covered by PCI and GDPR. How do you get the investigability you need without violating those obligations, and what would you want changed about how these logs are captured so this isn't a recurring problem?

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.