Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCS meta ticket #164350

Closed
10 tasks done
nreese opened this issue Aug 21, 2023 · 2 comments
Closed
10 tasks done

CCS meta ticket #164350

nreese opened this issue Aug 21, 2023 · 2 comments
Assignees
Labels
Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@nreese
Copy link
Contributor

nreese commented Aug 21, 2023

Background

Expose new CCS capabilities in Kibana

8.11 Tasks

8.12 Tasks

8.13 Tasks

Setup

  1. Start remote elasticsearch by running: yarn es snapshot -E transport.port=9500 -E http.port=9201 -E path.data=../remote1
  2. Install sample data to remote cluster
    1. Add elasticsearch.hosts: ["http://localhost:9201"] to kibana.dev.yml. Note create config/kibana.dev.yml if one does not exist. kibana.dev.yml is not managed by git so it has to be created the first time you add values.
    2. run yarn start to start kibana process
    3. install sample web logs data set on home page
    4. install sample flight data set on home page
    5. stop kibana process
    6. remove elasticsearch.hosts from kibana.dev.yml
  3. Start local elasticsearch by running: yarn es snapshot -E path.data=../local1
  4. Start kibana
  5. Add remote cluster under "Stack management -> Remote clusters"
    1. Set Name to "remote1"
    2. Set Seed nodes to "localhost:9500"
  6. install sample web logs data set
  7. install sample flights data set
  8. Create data view.
    1. Set Index pattern to kibana_sample_data*,remote1:kibana_sample_data*
    2. Set Time field to timestamp

Example requests

Local cluster: 1 of 2 shard errors

Request

GET kibana_sample_data*/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "kibana_sample_data_logs",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "took": 0,
  "timed_out": false,
  "_shards": {
    "total": 2,
    "successful": 1,
    "skipped": 0,
    "failed": 1,
    "failures": [
      {
        "shard": 0,
        "index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "node": "XPQtz28bSLW26Oynf6oUmg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
          "index_uuid": "Pjkv7r1PQpmhbxaGL-6Chw",
          "index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "[.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
          }
        }
      }
    ]
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "kibana_sample_data_flights",
        "_id": "PdFvGYoBoSeeJV89RcVY",
        "_score": 1
      }
    ]
  }
}
Local cluster: 1 of 2 shard time out

Request

POST /kibana_sample_data*,remote1:kibana_sample_data*/_search?timeout=5s
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "none",
          "name": "kibana_sample_data_logs",
          "stall_time_seconds": 10
        }
      ]
    }
  }
}

Response

{
  "took": 10003,
  "timed_out": true,
  "num_reduce_phases": 3,
  "_shards": {
    "total": 6,
    "successful": 6,
    "skipped": 0,
    "failed": 0
  },
  "_clusters": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "details": {
      "(local)": {
        "status": "partial",
        "indices": "kibana_sample_data_ecommerce,kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 10003,
        "timed_out": true,
        "_shards": {
          "total": 3,
          "successful": 3,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "successful",
        "indices": "kibana_sample_data*",
        "took": 1,
        "timed_out": false,
        "_shards": {
          "total": 3,
          "successful": 3,
          "skipped": 0,
          "failed": 0
        }
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "dohIGYoBVurI4JE7lSP1",
        "_score": 1
      }
    ]
  }
}
Local cluster: All shards fail

Request

GET kibana_sample_data*/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "kibana_sample_data*",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "error": {
    "root_cause": [
      {
        "type": "query_shard_exception",
        "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
        "index_uuid": "Pjkv7r1PQpmhbxaGL-6Chw",
        "index": ".ds-kibana_sample_data_logs-2023.08.21-000001"
      },
      {
        "type": "query_shard_exception",
        "reason": "failed to create query: [kibana_sample_data_flights][0] local shard failure message 123",
        "index_uuid": "-Yls_m7MQlelUp91uQ00Zw",
        "index": "kibana_sample_data_flights"
      }
    ],
    "type": "search_phase_execution_exception",
    "reason": "all shards failed",
    "phase": "query",
    "grouped": true,
    "failed_shards": [
      {
        "shard": 0,
        "index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "node": "XPQtz28bSLW26Oynf6oUmg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
          "index_uuid": "Pjkv7r1PQpmhbxaGL-6Chw",
          "index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "[.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
          }
        }
      },
      {
        "shard": 0,
        "index": "kibana_sample_data_flights",
        "node": "XPQtz28bSLW26Oynf6oUmg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [kibana_sample_data_flights][0] local shard failure message 123",
          "index_uuid": "-Yls_m7MQlelUp91uQ00Zw",
          "index": "kibana_sample_data_flights",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "[kibana_sample_data_flights][0] local shard failure message 123"
          }
        }
      }
    ]
  },
  "status": 400
}
Remote cluster: No errors

Request

GET kibana_sample_data*,remote1:kibana_sample_data_logs,remote1:kibana_sample_data_flights/_search
{
  "size": 1,
  "_source": false
}

Response

{
  "took": 2,
  "timed_out": false,
  "num_reduce_phases": 3,
  "_shards": {
    "total": 4,
    "successful": 4,
    "skipped": 0,
    "failed": 0
  },
  "_clusters": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "details": {
      "(local)": {
        "status": "successful",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 0,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 2,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "successful",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 1,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 2,
          "skipped": 0,
          "failed": 0
        }
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "LNJvGYoBoSeeJV89ZiWw",
        "_score": 1
      }
    ]
  }
}
Remote cluster: 1 of 2 shard time out

Request

POST /kibana_sample_data*,remote1:kibana_sample_data*/_search?timeout=5s
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "none",
          "name": "remote1:kibana_sample_data_logs",
          "stall_time_seconds": 10
        }
      ]
    }
  }
}

Response

{
  "took": 10007,
  "timed_out": true,
  "num_reduce_phases": 3,
  "_shards": {
    "total": 6,
    "successful": 6,
    "skipped": 0,
    "failed": 0
  },
  "_clusters": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "details": {
      "(local)": {
        "status": "successful",
        "indices": "kibana_sample_data_ecommerce,kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 0,
        "timed_out": false,
        "_shards": {
          "total": 3,
          "successful": 3,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "partial",
        "indices": "kibana_sample_data*",
        "took": 10005,
        "timed_out": true,
        "_shards": {
          "total": 3,
          "successful": 3,
          "skipped": 0,
          "failed": 0
        }
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "LNJvGYoBoSeeJV89ZiWw",
        "_score": 1
      }
    ]
  }
}
Remote cluster: 1 of 2 shard error

Request

GET kibana_sample_data*,remote1:kibana_sample_data_logs,remote1:kibana_sample_data_flights/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "remote1:kibana_sample_data_logs",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "took": 10,
  "timed_out": false,
  "num_reduce_phases": 3,
  "_shards": {
    "total": 4,
    "successful": 3,
    "skipped": 0,
    "failed": 1,
    "failures": [
      {
        "shard": 0,
        "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
        "node": "NVzFRd6SS4qT9o0k2vIzlg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
          "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
          "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
          }
        }
      }
    ]
  },
  "_clusters": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "details": {
      "(local)": {
        "status": "successful",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 1,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 2,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "partial",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 5,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 1,
          "skipped": 0,
          "failed": 1
        },
        "failures": [
          {
            "shard": 0,
            "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
            "node": "NVzFRd6SS4qT9o0k2vIzlg",
            "reason": {
              "type": "query_shard_exception",
              "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
              "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
              "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
              "caused_by": {
                "type": "runtime_exception",
                "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
              }
            }
          }
        ]
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "LNJvGYoBoSeeJV89ZiWw",
        "_score": 1
      }
    ]
  }
}
Remote cluster (skip_unavailable: true): 1 of 2 shard error

Request

GET kibana_sample_data*,remote1:kibana_sample_data_logs,remote1:kibana_sample_data_flights/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "remote1:kibana_sample_data_logs",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "took": 2,
  "timed_out": false,
  "num_reduce_phases": 3,
  "_shards": {
    "total": 4,
    "successful": 3,
    "skipped": 0,
    "failed": 1,
    "failures": [
      {
        "shard": 0,
        "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
        "node": "NVzFRd6SS4qT9o0k2vIzlg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
          "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
          "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
          }
        }
      }
    ]
  },
  "_clusters": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "details": {
      "(local)": {
        "status": "successful",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 0,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 2,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "partial",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 1,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 1,
          "skipped": 0,
          "failed": 1
        },
        "failures": [
          {
            "shard": 0,
            "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
            "node": "NVzFRd6SS4qT9o0k2vIzlg",
            "reason": {
              "type": "query_shard_exception",
              "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
              "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
              "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
              "caused_by": {
                "type": "runtime_exception",
                "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
              }
            }
          }
        ]
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "LNJvGYoBoSeeJV89ZiWw",
        "_score": 1
      }
    ]
  }
}
Remote cluster: All shards fail

Request

GET kibana_sample_data*,remote1:kibana_sample_data_logs,remote1:kibana_sample_data_flights/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "remote1:*",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "error": {
    "root_cause": [
      {
        "type": "runtime_exception",
        "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
      },
      {
        "type": "runtime_exception",
        "reason": "runtime_exception: [kibana_sample_data_flights][0] local shard failure message 123"
      }
    ],
    "type": "search_phase_execution_exception",
    "reason": "all shards failed",
    "phase": "query",
    "grouped": true,
    "failed_shards": [
      {
        "shard": 0,
        "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
        "node": "NVzFRd6SS4qT9o0k2vIzlg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
          "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
          "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
          }
        }
      },
      {
        "shard": 0,
        "index": "remote1:kibana_sample_data_flights",
        "node": "NVzFRd6SS4qT9o0k2vIzlg",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [kibana_sample_data_flights][0] local shard failure message 123",
          "index_uuid": "43qn3r1pQjCPlSEuM0idPA",
          "index": "remote1:kibana_sample_data_flights",
          "caused_by": {
            "type": "runtime_exception",
            "reason": "runtime_exception: [kibana_sample_data_flights][0] local shard failure message 123"
          }
        }
      }
    ],
    "caused_by": {
      "type": "query_shard_exception",
      "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
      "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
      "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
      "caused_by": {
        "type": "runtime_exception",
        "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
      }
    }
  },
  "status": 400
}
Remote cluster (skip_unavailable: true): All shards fail

Request

GET kibana_sample_data*,remote1:kibana_sample_data_logs,remote1:kibana_sample_data_flights/_search
{
  "size": 1,
  "_source": false,
  "query": {
    "error_query": {
      "indices": [
        {
          "error_type": "exception",
          "message": "local shard failure message 123",
          "name": "remote1:*",
          "shard_ids": [
            0
          ]
        }
      ]
    }
  }
}

Response

{
  "took": 3,
  "timed_out": false,
  "num_reduce_phases": 2,
  "_shards": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "failed": 0
  },
  "_clusters": {
    "total": 2,
    "successful": 1,
    "skipped": 1,
    "details": {
      "(local)": {
        "status": "successful",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "took": 0,
        "timed_out": false,
        "_shards": {
          "total": 2,
          "successful": 2,
          "skipped": 0,
          "failed": 0
        }
      },
      "remote1": {
        "status": "skipped",
        "indices": "kibana_sample_data_logs,kibana_sample_data_flights",
        "timed_out": false,
        "failures": [
          {
            "shard": -1,
            "index": null,
            "reason": {
              "type": "search_phase_execution_exception",
              "reason": "all shards failed",
              "phase": "query",
              "grouped": true,
              "failed_shards": [
                {
                  "shard": 0,
                  "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
                  "node": "NVzFRd6SS4qT9o0k2vIzlg",
                  "reason": {
                    "type": "query_shard_exception",
                    "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
                    "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
                    "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
                    "caused_by": {
                      "type": "runtime_exception",
                      "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
                    }
                  }
                },
                {
                  "shard": 0,
                  "index": "remote1:kibana_sample_data_flights",
                  "node": "NVzFRd6SS4qT9o0k2vIzlg",
                  "reason": {
                    "type": "query_shard_exception",
                    "reason": "failed to create query: [kibana_sample_data_flights][0] local shard failure message 123",
                    "index_uuid": "43qn3r1pQjCPlSEuM0idPA",
                    "index": "remote1:kibana_sample_data_flights",
                    "caused_by": {
                      "type": "runtime_exception",
                      "reason": "runtime_exception: [kibana_sample_data_flights][0] local shard failure message 123"
                    }
                  }
                }
              ],
              "caused_by": {
                "type": "query_shard_exception",
                "reason": "failed to create query: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123",
                "index_uuid": "z1sPO8E4TdWcijNgsL_BxQ",
                "index": "remote1:.ds-kibana_sample_data_logs-2023.08.21-000001",
                "caused_by": {
                  "type": "runtime_exception",
                  "reason": "runtime_exception: [.ds-kibana_sample_data_logs-2023.08.21-000001][0] local shard failure message 123"
                }
              }
            }
          }
        ]
      }
    }
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".ds-kibana_sample_data_logs-2023.08.21-000001",
        "_id": "LNJvGYoBoSeeJV89ZiWw",
        "_score": 1
      }
    ]
  }
}

Kibana behavior with shard and cluster failures

Local cluster: 1 of 2 shards fail, Remote cluster: no errors

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "kibana_sample_data_logs",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 1 22 14 PM
Local cluster: All shards fail, Remote cluster: no errors

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "kibana_sample_data*",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 1 25 21 PM
Local cluster: no errors, Remote cluster: 1 of 2 shards fail

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "remote1:kibana_sample_data_flights",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 1 27 06 PM
Local cluster: no errors, Remote cluster (skip_unavailable: true): 1 of 2 shards fail

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "remote1:kibana_sample_data_flights",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 2 09 08 PM
Local cluster: no errors, Remote cluster: All shards fail

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "remote1:kibana_sample_data*",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 2 12 15 PM
Local cluster: no errors, Remote cluster (skip_unavailable: true): All shards fail

Filter

{
  "error_query": {
    "indices": [
      {
        "error_type": "exception",
        "message": "local shard failure message 123",
        "name": "remote1:kibana_sample_data*",
        "shard_ids": [
          0
        ]
      }
    ]
  }
}
Screen Shot 2023-08-21 at 2 10 05 PM
@nreese nreese added Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Aug 21, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese nreese self-assigned this Sep 19, 2023
kibanamachine added a commit that referenced this issue Nov 27, 2023
#167666

PR adds table sorting. In picture below, table is sorted by request time
<img width="200" alt="Screenshot 2023-11-22 at 2 13 41 PM"
src="https://github.com/elastic/kibana/assets/373691/710b0a3e-875b-463a-8344-f171b37df506">

PR adds search bar. Screen shot below shows status filter popover
<img width="200" alt="Screenshot 2023-11-22 at 2 14 18 PM"
src="https://github.com/elastic/kibana/assets/373691/644eeb47-0eba-4742-a381-4f997fbdf379">

Then, once search selections are made, the search bar filters the health
bar and table. In the screen shot below, the table only display remote1
because its the only cluster that matches the status.
<img width="200" alt="Screenshot 2023-11-22 at 2 14 11 PM"
src="https://github.com/elastic/kibana/assets/373691/e9491c88-1f11-4179-ad4a-476f8fd210c0">

### test instructions 
1. Follow CCS setup instructions from
#164350.
2. Open discover
3. Open inspector "clusters and shards" tab. Try sorting table and using
search bar to narrow clusters

---------

Co-authored-by: kibanamachine <[email protected]>
@ThomThomson
Copy link
Contributor

Closing meta ticket because the work has been finished!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

3 participants