Retrieve last Log after Crash

Source: Internet
Author: User
Tags system log

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.