Merge b0f2317abe into 9f89c45d13
This commit is contained in:
commit
c40e997064
|
|
@ -7,10 +7,6 @@
|
||||||
|
|
||||||
`journalctl -b --priority={{3}}`
|
`journalctl -b --priority={{3}}`
|
||||||
|
|
||||||
- Show all messages from last [b]oot:
|
|
||||||
|
|
||||||
`journalctl -b -1`
|
|
||||||
|
|
||||||
- Delete journal logs which are older than 2 days:
|
- Delete journal logs which are older than 2 days:
|
||||||
|
|
||||||
`journalctl --vacuum-time={{2d}}`
|
`journalctl --vacuum-time={{2d}}`
|
||||||
|
|
@ -23,6 +19,10 @@
|
||||||
|
|
||||||
`journalctl -u {{unit}}`
|
`journalctl -u {{unit}}`
|
||||||
|
|
||||||
|
- Show logs for a given unit since the last time it started:
|
||||||
|
|
||||||
|
`journalctl _SYSTEMD_INVOCATION_ID=$(systemctl show --value --property=InvocationID {{unit}})`
|
||||||
|
|
||||||
- Filter messages within a time range (either timestamp or placeholders like "yesterday"):
|
- Filter messages within a time range (either timestamp or placeholders like "yesterday"):
|
||||||
|
|
||||||
`journalctl --since {{now|today|yesterday|tomorrow}} --until {{YYYY-MM-DD HH:MM:SS}}`
|
`journalctl --since {{now|today|yesterday|tomorrow}} --until {{YYYY-MM-DD HH:MM:SS}}`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue