I wonder if there's a program or script for this? I'm on a Pinebook Pro, original mrfixit image on the original eMMC. I have backed it up and I have a nvme SSD which is only manually mounted so far. Anyway I see random shutdowns which look quite orderly in that I don't need to fsck afterwards. So back on November 19 I turned on persistent logging. and let the logs accumulate (now turned back off).
I have 33 logs of these shutdowns, I've exported the last 20 and looked at them some but I'm not seeing a common cause of them. In one I found the string "system will reboot soon", looks like maybe it's from a watchdog. But grepping, it's only in 5 of the 20 log exports. Those could have been planned shutdowns.
I can imagine a program that might try to analyze logs to look for such things, but is there one already?