Changes

From SME Server
Jump to navigationJump to search
290 bytes added ,  17:47, 22 January 2014
Line 277: Line 277:  
  less  /var/log/messages| grep -iE "uninitialized|WARNING|ERROR"
 
  less  /var/log/messages| grep -iE "uninitialized|WARNING|ERROR"
 
of course this is for the /var/log/messages
 
of course this is for the /var/log/messages
 +
 +
===Parse all Logs===
 +
Parse all logs and write the output to a file text named with the date of day. For example log012214
 +
 +
find /var/log/ -mtime -2 -print -exec sh -c 'cat "{}" | tai64nlocal | egrep -i "useless|warn|fail|error|disable|remov|unable|exit"' \; > "log$(date +'%m%d%y')" 2>&1
    
==Mail==
 
==Mail==

Navigation menu