find /opt/splunk/syslog/ -iname "*log*" -type f -mtime +30 | perl -wne 'BEGIN { $sum = 0 }; chomp; $sum += (stat)[7]; END { print "$sum\n" }'