Gzip all files with `.log` extension taking advantage of multiple threads (`-print0` uses a null character to split file names, and `-0` uses it as delimiter)
find . -name '*.log' -print0 | xargs -0 -P 4 -n 1 gzip