InterviewStack.io LogoInterviewStack.io

Logging and Log Analysis Questions

Covers operating system and application logging architecture, log collection, parsing, analysis, and security monitoring workflows. Topics include where logs are stored on Linux systems, system logging daemons and their configuration such as rsyslog, using the systemd journal and journalctl, and log rotation and retention strategies. Skills include parsing and inspecting logs with command line tools and regular expressions, extracting key fields such as timestamps, user identifiers, internet protocol addresses, actions performed, and error codes, and working with structured log formats such as JavaScript Object Notation. Also includes forwarding logs to centralized systems and agents, transport protocols and collectors, and upstream processing pipelines. For security and monitoring, this covers log aggregation, normalization, event correlation, alerting and thresholding, building searches and dashboards, and deriving forensic and operational insights for incident response and troubleshooting. Candidates may be evaluated on practical configuration tasks, example queries, interpreting log entries, designing log pipelines for reliability and scale, and applying best practices for retention, privacy, and performance.

MediumTechnical
44 practiced
How do you configure systemd-journald to persist logs across reboots but limit disk consumption? Explain key options in /etc/systemd/journald.conf such as Storage, SystemMaxUse, RuntimeMaxUse, ForwardToSyslog, and MaxFileSec. Also describe how to export journal entries to a remote collector.
MediumTechnical
49 practiced
Design a Logstash filter pipeline that ingests application logs, applies grok or JSON parsing, converts timestamps to @timestamp, enriches with GeoIP information from client IPs, and routes parsing failures into a dead-letter index. Include how you'd structure tags, metrics for parsing success/failure, and sample filter logic.
HardTechnical
42 practiced
You must parse 200k JSON log lines/sec per host. Compare implementation choices: Python with ujson, Go with encoding/json, and simdjson (C++ or language bindings). Describe a realistic benchmarking approach, memory allocation strategies (object pooling), concurrency model, and an outline of a Go-based parser optimized for minimal allocations and high throughput.
HardTechnical
41 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.
EasyTechnical
39 practiced
Demonstrate practical journalctl usage: give commands and short explanations for the following tasks:
1) List all boots and show the last boot's ID2) Show logs for unit nginx.service filtered to warning and above3) Follow logs in real time for a unit4) Export journal entries in JSON for downstream parsing
Also explain the significance of fields like _SYSTEMD_UNIT and _PID in the journal.

Unlock Full Question Bank

Get access to hundreds of Logging and Log Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.