HAOS system logs for diagnosing unplanned power down

I have HAOS newly installed on an x86 laptop and recently, after 5 days uptime, it mysteriously went offline while the house was empty. I found the laptop powered off. There’s no sign of any AC loss events, and certainly none that would have lasted long enough for the battery to deplete.

I’m curious if the OS logs may point to a reason for the shutdown but I’m not clear how I can access them, or what changes I need to make to ensure the logs are persisted in the future in case the issue recurs.

AFAIK, logs only persist one restart in home-assistant.log.1.

So the information in home-assistant.log gets copied to home-assistant.log.1 at some point during either the shutdown process or restart. (others will know which).

Look in \\<HOST>\config if you have Samba Share setup, OR if you have Studio Code Server installed you’ll see them in the left hand pane.

I think the home-assistant.log.* are core logs, no? I’m looking for higher level OS logs, I think similar to what is found in the “hosts” section of system logs, but for prior boots. Via ssh terminal I can see syslog messages via dmesg but I don’ see these persisted in any file anywhere.

Anyone have any other suggestions? I just had this happen again (2nd time) and am not sure where to go.

Is this a shortcoming of HAOS and I should make a feature request somewhere? Or switch away from HAOS to one of the other homeassistant options that gives me more visibility/control?