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.