import json


def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [4727, 4728, 4731, 4737, 4754, 4755, 4756],
            "ESX Admins" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
