Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
InfrastructureMiddleOccasionalPractical

How would you investigate an error across rotating Linux service logs?

Answer

Identify service, host, time window and correlation ID; use journal or file search with bounded filters; include rotated and compressed logs; then connect events across services. Preserve relevant evidence without exposing credentials or personal data.

Strong answer includes

  • time and correlation scope
  • rotated logs
  • safe evidence handling

Practical example

A tester needs to trace an error reported at 14:32 on Tuesday, so they use journalctl with a bounded --since/--until window and the request's correlation ID, then grep through gzip-compressed rotated logs from three days earlier with zgrep because the service had restarted and lost part of the in-memory journal, finally connecting the failure to a downstream service timeout.

#linux#logs#diagnostics

Sources

Google SRE booksGoogle · Reliability, SLOs, monitoring, incidents and resilienceDOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topics