Linux Commands - journalctl --since and --until filters

by
Jeremy Canfield |
Updated: January 26 2021
| Linux Commands articles
The journalctl command displays messages in the journal. The journalctl command without any options displays every message in the journal.
[root@server1 ~]# journalctl
Oct 20 13:14:27 root root: Example message
Oct 20 13:14:31 root root: Another example message
Oct 20 13:14:33 root root: And another example message
The --since and --until options can be used to view records in a certain time period.
[root@server1 ~]# journalctl --since="2016-11-21 19:00:00" --until="2016-11-21 19:01:00"
Nov 21 19:00:25 root root: Example message
Sometimes, it's easier to just use the --since flag with a human readable options such as "1 hour ago".
[root@server1 ~]# journalctl --since "1 hour ago"
Nov 21 19:00:25 root root: Example message
Or 5 minutes ago.
[root@server1 ~]# journalctl --since "5 minutes ago"
Nov 21 19:00:25 root root: Example message
Or 10 seconds ago.
[root@server1 ~]# journalctl --since "10 seconds ago"
Nov 21 19:00:25 root root: Example message
Did you find this article helpful?
If so, consider buying me a coffee over at