def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") == 5447,
                    "RonPolicy" in event.deep_get("FilterName", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") == 5449,
                    "RonPolicy" in event.deep_get("ProviderContextName", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
