def rule(event):
    if any(
        [
            all(
                [
                    "/solr/" in event.deep_get("cs-uri-query", default=""),
                    "/debug/dump?" in event.deep_get("cs-uri-query", default=""),
                    "param=ContentStream" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("sc-status", default="") == 200,
                ]
            ),
            all(
                [
                    event.deep_get("cs-method", default="") == "GET",
                    "/solr/" in event.deep_get("cs-uri-query", default=""),
                    "command=fetchindex" in event.deep_get("cs-uri-query", default=""),
                    "masterUrl=" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("sc-status", default="") == 200,
                ]
            ),
        ]
    ):
        return True
    return False
