Find all files with the extension .log, and execute the command sed to replace the string 'foo/bar' with an empty string in each of them.
find . -type f -name '*.log' -exec sed -i -e "s/' foo/bar '/g" {} \;