# platform = multi_platform_all
# reboot = false
# strategy = configure
# complexity = low
# disruption = low

newgroup=""
if getent group "syslog" >/dev/null 2>&1; then
  newgroup="syslog"
fi

if [[ -z "${newgroup}" ]]; then
  >&2 echo "syslog is not a defined group on the system"
else
find -P /var/log/ -maxdepth 0 -type d  ! -group syslog -exec chgrp --no-dereference "$newgroup" {} \;

fi