journalctl: add options to filter by time

This commit is contained in:
Jaseem Abid
2019-08-17 10:03:03 +05:30
committed by Agniva De Sarker
parent d155a6dcf5
commit 095c393ed3
+8
View File
@@ -18,6 +18,14 @@
`journalctl -u {{unit}}`
- Show messages by a specific unit in last 15m:
`journalctl -u {{unit}} --since {{-15m}}`
- Filter messages within a time range (either timestamp or placeholders like "yesterday"):
`journalctl -u {{unit}} --since {{now|today|yesterday|tomorrow}} --until {{YYYY-MM-DD HH:MM:SS}}`
- Show all messages by a specific process:
`journalctl _PID={{pid}}`