About this article
Based on the official systemd journal manual, this article outlines how to safely isolate log entries by specific time ranges.
Verification status: 📘 Confirmed with official systemd specifications
During log investigation, running text searches across the entire journal can be inefficient. Narrowing down the time range using journalctl --since and --until allows you to quickly isolate relevant log entries.
Try this first
journalctl --since "10 minutes ago" --until "now" --no-pager | tail -n 50
This command is read-only and does not modify any system logs.
Check specific time ranges
To investigate an incident that occurred at a specific time (for example, around 11:20), specify a precise window such as 5 minutes before and after:
journalctl --since "2026-09-20 11:15:00" --until "2026-09-20 11:25:00" --no-pager
Combine with unit filtering
To further reduce candidate log entries, combine time ranges with a service unit filter like -u nginx.service:
journalctl -u nginx.service --since "30 minutes ago" --no-pager
References
この記事の更新履歴
この記事は、生成AIを活用した自動レビュー・更新フローにより内容を見直し、必要な修正を反映しています。
2026年9月26日
- 変更不自然に分断されていた見出し構造と本文の崩れを修正しました。
- 追加具体的な時間指定フォーマットやサービス名(Unit)の絞り込み例を追加しました。

