diff --git a/salt/common/tools/sbin/so-log-check b/salt/common/tools/sbin/so-log-check index 621f0027a..d377d0236 100755 --- a/salt/common/tools/sbin/so-log-check +++ b/salt/common/tools/sbin/so-log-check @@ -178,7 +178,9 @@ done # Check Security Onion related log files find /opt/so/log/ /nsm -name \*.log > /tmp/log_check_files -echo "/var/log/cron" >> /tmp/log_check_files +if [[ -f /var/log/cron ]]; then + echo "/var/log/cron" >> /tmp/log_check_files +fi exclude_log "kibana.log" exclude_log "spool" exclude_log "import"