def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 29,
            event.deep_get("Configuration", default="").endswith("@logTargetW3C"),
            "ETW" in event.deep_get("OldValue", default=""),
            not "ETW" in event.deep_get("NewValue", default=""),
        ]
    ):
        return True
    return False
