import json


def rule(event):
    if all(
        [
            any(
                [
                    "%WEBUI-6-INSTALL_OPERATION_INFO:" in json.dumps(event.to_dict()),
                    "%SYS-5-CONFIG_P:" in json.dumps(event.to_dict()),
                    "%SEC_LOGIN-5-WEBLOGIN_SUCCESS:" in json.dumps(event.to_dict()),
                ]
            ),
            any(
                [
                    "cisco_tac_admin" in json.dumps(event.to_dict()),
                    "cisco_support" in json.dumps(event.to_dict()),
                    "cisco_sys_manager" in json.dumps(event.to_dict()),
                ]
            ),
        ]
    ):
        return True
    return False
