def rule(event):
    if all(
        [
            event.deep_get("cs-method", default="") == "POST",
            event.deep_get("sc-status", default="") in [200, 302],
            any(
                [
                    all(
                        [
                            "/splunkd/__upload/indexing/preview"
                            in event.deep_get("cs-uri-stem", default=""),
                            "NO_BINARY_CHECK=1" in event.deep_get("cs-uri-query", default=""),
                            "input.path=shell.xsl" in event.deep_get("cs-uri-query", default=""),
                        ]
                    ),
                    all(
                        [
                            "/api/search/jobs" in event.deep_get("cs-uri-stem", default=""),
                            "/results" in event.deep_get("cs-uri-stem", default=""),
                            "/opt/splunk/var/run/splunk/dispatch/"
                            in event.deep_get("cs-uri-query", default=""),
                            "/shell.xsl" in event.deep_get("cs-uri-query", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
