ldapsearch -Q -LLL -Y EXTERNAL -b cn=config olcLogLevel | grep olcLogLevel
cat <<EOF | ldapmodify -Q -Y EXTERNAL -H ldapi:/// dn: cn=config changetype: modify add: olcLogLevel olcLogLevel: conns filter EOF
cat <<EOF | ldapmodify -Q -Y EXTERNAL -H ldapi:/// dn: cn=config changetype: modify replace: olcLogLevel olcLogLevel: conns filter EOF
cat <<EOF | ldapmodify -Q -Y EXTERNAL -H ldapi:/// dn: cn=config changetype: modify replace: olcLogLevel olcLogLevel: stats EOF
sudo service slapd restart