To exclude files older than 30 days:
find /var/log -type f -name '*.log' -mtime +30 -exec rm -f {} \;