Find all files in the /var/log directory with a name ending in "log", execute a grep command to search for the words "warning" or "error" in each file, sort the results, and count the number of unique occurrences, then sort the results numerically.
find /var/log -name "*log" -exec grep -E 'warning|error' {} \; | sort | uniq -c | sort -n