def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 31017,
            event.deep_get("UserName", default="") == "",
            event.deep_get("ServerName", default="").startswith("\\1"),
        ]
    ):
        return True
    return False
