CTF Arsenal
DFIR / Command Mistakes & Recovery

journalctl returns nothing for a time window you expect events in

1. Error or symptom

A journalctl query scoped to a unit and time range returns zero lines.

2. Likely cause

Wrong unit name (e.g. sshd.service vs ssh.service, distro-dependent), or the journal has been rotated/vacuumed past that time.

3. How to verify

systemctl list-units --type=service | grep -i ssh to confirm the exact unit name; journalctl --since 'DATE' with no -u filter to confirm any logs exist for that window at all.

4. Correct command

journalctl -u ssh.service --since 'DATE' --until 'DATE'

5. Recovery procedure

Re-run with the corrected unit name, or widen the time window to confirm log coverage exists at all.

6. How to avoid repeating it

Confirm the exact unit name for this specific distro before assuming the log simply has no events.