Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to collect previous kernel logs in linux after reboot and how to search the old logs?

Initially when system is rebooted the logs are not captured and found rest of the log's.But there is an error in the previous log which is not captured???

share|improve this question
Three places to check; Output from the dmesg command, the /var/log/boot.log, and /var/log/messages (Note: It would be helpful if you mentioned / tagged your actual Linux distribution in your question) – Signal15 Dec 5 '14 at 15:53
Also, dmesg output may already be caught-up in /var/log/dmesg.log (Depending on your Linux distribution). If not, it's a simple thing to put in an rc.local script (dmesg >> /var/log/dmesg.log), and you might want to include that in the log-rotation so it doesn't endlessly append to the file. – Signal15 Dec 5 '14 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.