grep $pattern *.log
find $dir -type f -name '*.log' -exec grep -o $pattern {} \;
find $dir -type f -name '*.log' -print0 | xargs -0 grep -o $pattern