In Linux, there are two kinds the Crashes-kernel panic/oom and user space core dump. For kernel panic, the standard config is rebooting the system. Unfortunately, the panic log can only being printed to console and would disappear after reboot if there is no additional Devi Ce to record the console Log-most kernel panic/oom logs won ' t being written to system log, and even they does, there is no WA Y to sync them to disk storage during panic.
As for User-sapce Core dump, core files would be generated To/tmp/pid.core (core pattern can is changed In/proc/sys/kernel /core_pattern) by default. It is up to the admin to decide if the system or process needs reboot after core dump. Although a script can be used to the logs for the coredump, sometimes it's still useful to retain some info in the Persistent memory, like the backtrace of the coredumped process.
-More at:http://www.bo-yang.net/2015/05/27/retrieve-last-log/#sthash. JID8JRF5.DPUF