Is there any issue with the command as below?
#XYZ_LOGS=/var/log/xyz
#find $XYZ_LOGS -xdev -type f ! -name '*gz' -xtime +1 -exec gzip -q "{}" \;
I wanted to gzip all files in daily basis under /var/log/xyz only. Then after that, I am going to in-place it into cron.
Thank you for your help!