Find all files in the current directory and its subdirectories whose name ends with ".log", and execute the command "grep -v -i "error" on each of them.
find ~ -iname '*\.log' -exec grep -v -i "error" {} \;