Periodic system freezes

Good day! Installed hass.io on raspberry pi 3B, noticed that every few days the system freezes, ping passes, but the web interface is not available. Please tell me how to find the logs after rebooting the system, what caused the hang?