Find all files in the /tmp directory with a ".log" extension that have been modified more than 30 minutes ago and compress them using gzip.
find /tmp -type f -name "*.log" -mmin +30 -exec gzip -q {} \;