Search in the directory /var/log for files with the name ending in ".log" and type "f" (files) and execute the command "grep -iH 'error' {} \;" for each of them.
find /var/log -iname "*.log" -type f -exec grep -iH 'error' {} \;