Search the /tmp directory for files ending with .log and for each file found, search for the string "ERROR" and print the filename with the matching line.
find /tmp -name '*.log' | xargs grep -H "ERROR"