Jump to content

Command Crate ¿about?

Search for specific errors in log files older than 10 days (find)

find . -type f -name "*.log" -mtime +10 | xargs grep -iEn "(Error 403|Error 404)"

Finds .log files modified more than 10 days ago and searches for "Error 403" or "Error 404" within them.

log management [kb:14]