Find all files with the extension ".log" in the "/var/log/" directory and execute a search for the word "error" in each of them, then list the files that contain the word.
find /var/log/ -iname "*.log" -exec grep -l 'error' {} \;