Help - HA on rpi4 reboot

Hello. i use HA on rpi4
now, two times at day, it reboot, and i don’t know why

Can you help me to make, automation, to write syslog before reboot

Thank you