I am examining the log of my program, which runs on a Raspbian 9, on an SD card. The program is started and managed by systemd
, and the logs are handled by journald
.
Occasionally the log contains gaps, such as the one highlighted below:
You can see that a period of almost 24h is not reflected in the log. However, the logic of the software is to log a line once every few minutes, reflecting its current state.
I am also sure that it is not a gap caused by a power outage, because if that were the case, then the first lines on August 27th would have been "start" markers that the program writes when it initializes itself and the periphery it interacts with.
Besides that, my understanding is that journald
shows a ----Reboot----
line in the log if the system was booted - I don't see that marker either. Note that persistent logging is enabled and I do see the marker in other spots, where a reboot was expected.
In other words, it seems like those log lines were cut out.
How can such anomalies be explained?
journalctl --list-boots
?