PDA

View Full Version : SLES 12 SP4 journalctl looks only back for a very short period



berndgsflinux
21-Jan-2019, 15:21
Hi,
i had problems with several boot procedures on a SLES 12 SP4 host. So i wanted to have a look in the logs what happened.
But my journalctl just starts with a correct boot procedure which happened afterwards. Also using e.g. "--since yesterday" or "--since 2019-01-18" does not show previous information. There seems to be only one journal:
ha-idg-1:~ # ll /run/log/journal/
total 0
drwxr-s--- 2 root systemd-journal 60 Jan 21 12:52 444779a6db7e18b3bf8434ee5b7da073

Are there older logs, where can i find them ? Under /var/log/ i don't find anything appropriate.
How can i have a look further in the past ?

Thanks.

Bernd

malcolmlewis
22-Jan-2019, 05:19
Hi,
i had problems with several boot procedures on a SLES 12 SP4 host. So i wanted to have a look in the logs what happened.
But my journalctl just starts with a correct boot procedure which happened afterwards. Also using e.g. "--since yesterday" or "--since 2019-01-18" does not show previous information. There seems to be only one journal:
ha-idg-1:~ # ll /run/log/journal/
total 0
drwxr-s--- 2 root systemd-journal 60 Jan 21 12:52 444779a6db7e18b3bf8434ee5b7da073

Are there older logs, where can i find them ? Under /var/log/ i don't find anything appropriate.
How can i have a look further in the past ?

Thanks.

Bernd
Hi
The following works for me on SLES 12 SP3 and SLES 15;


journalctl -b --since=2019-01-18

berndgsflinux
22-Jan-2019, 11:28
Hi
The following works for me on SLES 12 SP3 and SLES 15;


journalctl -b --since=2019-01-18


Hi Malcom,

thanks for your reply. I tried that already but it didn't help.
I checked /etc/systemd/journald.conf and realized that Storage was set to auto, but i didn't create /var/log/journal, so my logs where saved to /run where they are volatile.
I created /var/log/journal, so i have now persistent logs, but of course that doesn't bring me the desired logs from the past which are lost.

Bernd