I've tried to search on this topic but have not found what I'm looking for.
I have a Pi v2 running Stretch. It is running a python program in a SCREEN session. This system has been running continuously for over a month without any issues. Yesterday and again today, I found the Pi non-responsive, cpu light red on continuously. Power cycling brings it back to life.
I would like to trace back the issue which has caused the system to shutdown. What are the best procedures to find the activities when it shutdown and the reasons for the shutdown?