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.

MediumTechnical
36 practiced

During an incident retro, you go looking for the application log from four days ago and it's gone; only the last couple of days of rotated files still exist. Walk through how you'd figure out whether that's expected retention behavior or a rotation misconfiguration, and what you'd check or change so it doesn't bite the next investigation.

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.

MediumTechnical
34 practiced

Write a robust regular expression or short code snippet that matches both IPv4 and IPv6 addresses in arbitrary log lines. Include normalization behavior for IPv6 (zero-compression) and handle edge cases where ports are appended (e.g., '2001:db8::1:443' or '192.0.2.1:8080'). Explain common pitfalls with naive regexes and how to validate extracted addresses.

HardTechnical
30 practiced

Your logs are archived to S3 partitioned by date, and an active investigation needs ad-hoc search across the last 90 days with results back in minutes, not hours. Weighing options like Athena over Parquet, a frozen Elasticsearch tier, or spinning up a Presto/EMR cluster, what would you actually reach for and why, and how do you keep this affordable without making older, colder logs effectively unusable when you do need them?

HardTechnical
31 practiced

An on-call page indicates the system root partition is nearly full. journalctl shows very large journal files consuming space and inhibiting system processes. Walk through immediate mitigation steps to free space without losing critical logs, how to safely prune the journal, commands to identify the log growth cause, and long-term configuration changes to prevent recurrence.

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.