How to find errors in Ubunty system log files, in particular, errors that can cause various problems and proving that system is damaged, not small arbitrary errors. I mean search for lines with error, corrupted, failed, crash messages in log files. Which log files is most important? I installed Glogg log explorer utility. Is there method to scan multiple log files and filter out important error messsages to separate file for analysis?
Ubuntu – How to filter out errors in Ubunty system log files
14.04error handlingfilesystemloggingsystem
Best Answer
The simplest way to do this is by using
grep
in a terminal window. The log file you should check first, issyslog
. So, typing:grep -i -e fail -e error -e corrupt /var/log/syslog
would give you all the lines that contain the key words you type after each -e switch. The -i switch tells
grep
to ignore case.