Rocky 9.x journalctl options

From Notes_Wiki

Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x journalctl options

Logs after current boot (-b)

We can use below to see logs post current boot:

journalctl -b

This can be useful if we want to debug some service which is not running eg mariadb / sshd etc. and we have tried to start it manually after current boot perhaps after making some configuration changes


Logs between some interval

We can see logs between specific period using:

journalctl --since "2022-01-01 00:00:00" --until "2022-01-01 23:59:59"



Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x journalctl options