Backup of log files

The servers are glitching and freezing. This happens unexpectedly days or weeks between issues. Power light on server on but cannot ssh or use monitor and keyboard direct. A power cycle reboots and it starts and no problems. But the logs are restarted after the reboot. I’m wanting to see pre-crash logs. I already replaced the small power supplies. I have 2 servers, different apps, same problem.