def rule(event):
    if any(
        [
            any(
                [
                    "Clear-EventLog " in event.deep_get("ScriptBlockText", default=""),
                    "Remove-EventLog " in event.deep_get("ScriptBlockText", default=""),
                    "Limit-EventLog " in event.deep_get("ScriptBlockText", default=""),
                    "Clear-WinEvent " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            all(
                [
                    "Eventing.Reader.EventLogSession"
                    in event.deep_get("ScriptBlockText", default=""),
                    "ClearLog" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            all(
                [
                    "Diagnostics.EventLog" in event.deep_get("ScriptBlockText", default=""),
                    "Clear" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
