文档首页/ 云搜索服务 CSS/ 故障排除/ 数据导入导出类/ OpenSearch Dashboards导入Sample Data失败
更新时间:2026-08-20 GMT+08:00
分享

OpenSearch Dashboards导入Sample Data失败

问题描述

在OpenSearch 2.11.0与OpenSearch 2.17.1集群的OpenSearch Dashboards页面导入Sample Data时,安装失败并提示如下报错信息:

Unable to install sample data set: Sample flight data

Sample Data是OpenSearch Dashboards提供的示例数据集,用于快速体验查询与可视化功能。导入失败不影响集群已有业务数据。

问题原因

OpenSearch Dashboards 2.11.0与2.17.1版本的.kibana索引及索引模板中部分字段缺失,导致导入Sample flight data时数据写入不完整。

解决方案

在OpenSearch Dashboards的Dev Tools页面,执行命令修复.kibana索引字段映射。

  1. 登录OpenSearch Dashboards进入命令执行页面。

    1. 登录云搜索服务管理控制台
    2. 在左侧导航栏,选择“集群管理 > OpenSearch”
    3. 在集群列表,选择目标集群,单击操作列的“Dashboards”,登录OpenSearch Dashboards。
    4. 在OpenSearch Dashboards左侧导航栏选择“Dev Tools”,进入操作页面。

      控制台左侧是命令输入框,其右侧的三角形图标为执行按钮,右侧区域则显示执行结果。

  2. 依次执行以下命令,同时修复.kibana索引的字段映射及关联的索引模板,确保后续新建的.kibana索引也包含完整字段。

    以下命令会修改.kibana索引及索引模板的字段映射,请确认命令内容后再执行,并等待返回结果中包含"acknowledged": true再执行下一条。建议在业务低峰期操作。

    • 命令1:修复.kibana索引字段映射。
      PUT /.kibana*/_mapping
      {
        "_meta": {
          "migrationMappingPropertyHashes": {
            "augment-vis": "88f930f6b43c089a12bfc276c359d1eb",
            "application_usage_daily": "43b8830d5d0df85a6823d290885fc9fd",
            "visualization": "f819cf6636b75c9e76ba733a0c6ef355",
            "observability-search": "638ae3ab28e5faf2e02f00dd8091abaf",
            "references": "7997cf5a56cc02bdc9c93361bde732b0",
            "integration-template": "9033ba0b281fe1c88c3c56d8fd9d089d",
            "type": "2f4316de49999235636386fe51dc06c1",
            "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4",
            "search": "43012c7ebc4cb57054e0a490e4b43023",
            "originId": "2f4316de49999235636386fe51dc06c1",
            "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724",
            "updated_at": "00da57df13e94e9d98437d13ace4bfe0",
            "dql-telemetry": "d12a98a6f19a2d273696597547e064ee",
            "search-telemetry": "3d1b76c39bfb2cc8296b024d73854724",
            "integration-instance": "17ab914d1f92a5b03bbb194651c23b1c",
            "observability-panel": "df07b1a361c32daf4e6842c1d5521dbe",
            "visualization-visbuilder": "7a6fadcdaaf97b2b8b65d290fd8a3ba7",
            "map": "32fcfaba6c580bf048359fcb48ad5301",
            "dashboard": "40554caf09725935e2c02e02563a2d07",
            "query": "531cf50c8e0b1c9f610e263f878d124c",
            "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3",
            "application_usage_transactional": "3d1b76c39bfb2cc8296b024d73854724",
            "observability-visualization": "638ae3ab28e5faf2e02f00dd8091abaf",
            "url": "c7f66a0df8b1b52f17c28c4adb111105",
            "migrationVersion": "4a1746014a75ade3a714e1db5763276f",
            "index-pattern": "45915a1ad866812242df474eb0479052",
            "namespace": "2f4316de49999235636386fe51dc06c1",
            "observability-notebook": "638ae3ab28e5faf2e02f00dd8091abaf",
            "config": "c63748b75f39d0c54de12d12c1ccbc20",
            "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215",
            "namespaces": "2f4316de49999235636386fe51dc06c1",
            "homepage": "a8d79cfe4f79546aa5bbee73facc51dc"
          }
        },
        "dynamic": "strict",
        "properties": {
          "augment-vis": {
            "properties": {
              "visLayerExpressionFn": {
                "properties": {
                  "args": { "dynamic": "true", "type": "object" },
                  "name": { "type": "text" },
                  "type": { "type": "text" }
                }
              },
              "pluginResource": {
                "properties": {
                  "id": { "type": "text" },
                  "type": { "type": "text" }
                }
              },
              "originPlugin": { "type": "text" },
              "description": { "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "visName": { "type": "keyword" }
            }
          },
          "application_usage_daily": {
            "dynamic": "false",
            "properties": {
              "timestamp": { "type": "date" }
            }
          },
          "visualization": {
            "properties": {
              "savedSearchRefName": { "type": "keyword" },
              "description": { "type": "text" },
              "uiStateJSON": { "index": true, "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": true, "type": "text" }
                }
              },
              "visState": { "type": "text" }
            }
          },
          "observability-search": {
            "dynamic": "false",
            "properties": {
              "description": { "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" }
            }
          },
          "references": {
            "type": "nested",
            "properties": {
              "name": { "type": "keyword" },
              "id": { "type": "keyword" },
              "type": { "type": "keyword" }
            }
          },
          "integration-template": {
            "dynamic": "false",
            "properties": {
              "components": { "type": "nested" },
              "author": { "type": "text" },
              "displayName": { "type": "text" },
              "description": { "type": "text" },
              "type": { "type": "text" },
              "version": { "type": "text" },
              "statics": { "type": "nested" },
              "labels": { "type": "text" },
              "sourceUrl": { "type": "text" },
              "license": { "type": "text" },
              "assets": { "type": "nested" },
              "sampleData": { "type": "nested" },
              "name": { "type": "text" }
            }
          },
          "type": { "type": "keyword" },
          "sample-data-telemetry": {
            "properties": {
              "installCount": { "type": "long" },
              "unInstallCount": { "type": "long" }
            }
          },
          "search": {
            "properties": {
              "hits": { "index": false, "type": "integer", "doc_values": true },
              "columns": { "index": false, "type": "keyword", "doc_values": true },
              "description": { "type": "text" },
              "sort": { "index": false, "type": "keyword", "doc_values": true },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": false, "type": "text" }
                }
              }
            }
          },
          "application_usage_totals": { "dynamic": "false", "type": "object" },
          "originId": { "type": "keyword" },
          "dql-telemetry": {
            "properties": {
              "optInCount": { "type": "long" },
              "optOutCount": { "type": "long" }
            }
          },
          "updated_at": { "type": "date" },
          "search-telemetry": { "dynamic": "false", "type": "object" },
          "integration-instance": {
            "dynamic": "false",
            "properties": {
              "assets": { "type": "nested" },
              "templateName": { "type": "text" },
              "name": { "type": "text" },
              "creationDate": { "type": "date" },
              "dataSource": { "type": "text" }
            }
          },
          "observability-panel": {
            "dynamic": "false",
            "properties": {
              "description": { "type": "text" },
              "title": { "type": "text" }
            }
          },
          "visualization-visbuilder": {
            "properties": {
              "styleState": { "index": false, "type": "text" },
              "uiState": { "index": false, "type": "text" },
              "description": { "type": "text" },
              "visualizationState": { "index": false, "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": true, "type": "text" }
                }
              }
            }
          },
          "map": {
            "properties": {
              "uiState": { "index": false, "type": "text" },
              "mapState": { "index": false, "type": "text" },
              "description": { "type": "text" },
              "layerList": { "index": false, "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": false, "type": "text" }
                }
              }
            }
          },
          "dashboard": {
            "properties": {
              "hits": { "index": true, "type": "integer", "doc_values": true },
              "timeFrom": { "index": true, "type": "keyword", "doc_values": true },
              "timeTo": { "index": true, "type": "keyword", "doc_values": true },
              "refreshInterval": {
                "properties": {
                  "display": { "index": true, "type": "keyword", "doc_values": true },
                  "section": { "index": true, "type": "integer", "doc_values": true },
                  "value": { "index": true, "type": "integer", "doc_values": true },
                  "pause": { "index": true, "type": "boolean", "doc_values": true }
                }
              },
              "description": { "type": "text" },
              "timeRestore": { "index": true, "type": "boolean", "doc_values": true },
              "title": { "type": "text" },
              "version": { "type": "integer" },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": true, "type": "text" }
                }
              },
              "optionsJSON": { "index": true, "type": "text" },
              "panelsJSON": { "index": true, "type": "text" }
            }
          },
          "query": {
            "properties": {
              "timefilter": { "type": "object", "enabled": false },
              "isTemplate": { "type": "boolean" },
              "query": {
                "properties": {
                  "query": { "index": false, "type": "keyword" },
                  "language": { "type": "keyword" },
                  "dataset": {
                    "properties": {
                      "timeFieldName": { "type": "text" },
                      "language": { "type": "text" },
                      "id": { "type": "text" },
                      "title": { "type": "text" },
                      "type": { "type": "text" },
                      "dataSource": {
                        "properties": {
                          "meta": {
                            "properties": {
                              "name": { "type": "text" },
                              "sessionId": { "type": "text" }
                            }
                          },
                          "id": { "type": "text" },
                          "title": { "type": "text" },
                          "type": { "type": "text" }
                        }
                      }
                    }
                  }
                }
              },
              "description": { "type": "text" },
              "filters": { "type": "object", "enabled": false },
              "title": { "type": "text" }
            }
          },
          "application_usage_transactional": { "dynamic": "false", "type": "object" },
          "ui-metric": {
            "properties": {
              "count": { "type": "integer" }
            }
          },
          "observability-visualization": {
            "dynamic": "false",
            "properties": {
              "description": { "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" }
            }
          },
          "url": {
            "properties": {
              "accessCount": { "type": "long" },
              "accessDate": { "type": "date" },
              "url": { "type": "text", "fields": { "keyword": { "ignore_above": 2048, "type": "keyword" } } },
              "createDate": { "type": "date" }
            }
          },
          "migrationVersion": {
            "dynamic": "true",
            "properties": {
              "config": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }
            }
          },
          "index-pattern": {
            "dynamic": "false",
            "properties": {
              "title": { "type": "text" },
              "type": { "type": "keyword" }
            }
          },
          "namespace": { "type": "keyword" },
          "observability-notebook": {
            "dynamic": "false",
            "properties": {
              "description": { "type": "text" },
              "title": { "type": "text" },
              "version": { "type": "integer" }
            }
          },
          "config": {
            "dynamic": "false",
            "properties": {
              "buildNum": { "type": "keyword" }
            }
          },
          "tsvb-validation-telemetry": {
            "properties": {
              "failedRequests": { "type": "long" }
            }
          },
          "homepage": {
            "properties": {
              "heroes": {
                "properties": {
                  "id": { "type": "keyword" }
                }
              },
              "kibanaSavedObjectMeta": {
                "properties": {
                  "searchSourceJSON": { "index": false, "type": "text" }
                }
              },
              "sections": {
                "properties": {
                  "id": { "type": "keyword" }
                }
              }
            }
          },
          "namespaces": { "type": "keyword" }
        }
      }
    • 命令2:修复tenant_template索引模板。
      PUT /_template/tenant_template
      {
        "order": 0,
        "index_patterns": [
          ".kibana*",
          ".kibana_-*_*",
          ".kibana_0*_*",
          ".kibana_1*_*",
          ".kibana_2*_*",
          ".kibana_3*_*",
          ".kibana_4*_*",
          ".kibana_5*_*",
          ".kibana_6*_*",
          ".kibana_7*_*",
          ".kibana_8*_*",
          ".kibana_9*_*"
        ],
        "settings": {
          "index": {
            "number_of_shards": "1",
            "priority": "1000",
            "auto_expand_replicas": "0-1"
          }
        },
        "mappings": {
          "_meta": {
            "migrationMappingPropertyHashes": {
              "augment-vis": "88f930f6b43c089a12bfc276c359d1eb",
              "application_usage_daily": "43b8830d5d0df85a6823d290885fc9fd",
              "visualization": "f819cf6636b75c9e76ba733a0c6ef355",
              "observability-search": "638ae3ab28e5faf2e02f00dd8091abaf",
              "references": "7997cf5a56cc02bdc9c93361bde732b0",
              "integration-template": "9033ba0b281fe1c88c3c56d8fd9d089d",
              "type": "2f4316de49999235636386fe51dc06c1",
              "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4",
              "search": "43012c7ebc4cb57054e0a490e4b43023",
              "originId": "2f4316de49999235636386fe51dc06c1",
              "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724",
              "updated_at": "00da57df13e94e9d98437d13ace4bfe0",
              "dql-telemetry": "d12a98a6f19a2d273696597547e064ee",
              "search-telemetry": "3d1b76c39bfb2cc8296b024d73854724",
              "integration-instance": "17ab914d1f92a5b03bbb194651c23b1c",
              "observability-panel": "df07b1a361c32daf4e6842c1d5521dbe",
              "visualization-visbuilder": "7a6fadcdaaf97b2b8b65d290fd8a3ba7",
              "map": "32fcfaba6c580bf048359fcb48ad5301",
              "dashboard": "40554caf09725935e2c02e02563a2d07",
              "query": "531cf50c8e0b1c9f610e263f878d124c",
              "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3",
              "application_usage_transactional": "3d1b76c39bfb2cc8296b024d73854724",
              "observability-visualization": "638ae3ab28e5faf2e02f00dd8091abaf",
              "url": "c7f66a0df8b1b52f17c28c4adb111105",
              "migrationVersion": "4a1746014a75ade3a714e1db5763276f",
              "index-pattern": "45915a1ad866812242df474eb0479052",
              "namespace": "2f4316de49999235636386fe51dc06c1",
              "observability-notebook": "638ae3ab28e5faf2e02f00dd8091abaf",
              "config": "c63748b75f39d0c54de12d12c1ccbc20",
              "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215",
              "namespaces": "2f4316de49999235636386fe51dc06c1",
              "homepage": "a8d79cfe4f79546aa5bbee73facc51dc"
            }
          },
          "dynamic": "strict",
          "properties": {
            "augment-vis": {
              "properties": {
                "visLayerExpressionFn": {
                  "properties": {
                    "args": { "dynamic": "true", "type": "object" },
                    "name": { "type": "text" },
                    "type": { "type": "text" }
                  }
                },
                "pluginResource": {
                  "properties": {
                    "id": { "type": "text" },
                    "type": { "type": "text" }
                  }
                },
                "originPlugin": { "type": "text" },
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "visName": { "index": false, "type": "keyword", "doc_values": false }
              }
            },
            "application_usage_daily": {
              "dynamic": "false",
              "properties": {
                "timestamp": { "type": "date" }
              }
            },
            "visualization": {
              "properties": {
                "savedSearchRefName": { "index": false, "type": "keyword", "doc_values": false },
                "description": { "type": "text" },
                "uiStateJSON": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "visState": { "index": false, "type": "text" }
              }
            },
            "observability-search": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "references": {
              "type": "nested",
              "properties": {
                "name": { "type": "keyword" },
                "id": { "type": "keyword" },
                "type": { "type": "keyword" }
              }
            },
            "integration-template": {
              "dynamic": "false",
              "properties": {
                "components": { "type": "nested" },
                "author": { "type": "text" },
                "displayName": { "type": "text" },
                "description": { "type": "text" },
                "type": { "type": "text" },
                "version": { "type": "text" },
                "statics": { "type": "nested" },
                "labels": { "type": "text" },
                "sourceUrl": { "type": "text" },
                "license": { "type": "text" },
                "assets": { "type": "nested" },
                "sampleData": { "type": "nested" },
                "name": { "type": "text" }
              }
            },
            "type": { "type": "keyword" },
            "sample-data-telemetry": {
              "properties": {
                "installCount": { "type": "long" },
                "unInstallCount": { "type": "long" }
              }
            },
            "search": {
              "properties": {
                "hits": { "index": false, "type": "integer", "doc_values": false },
                "columns": { "index": false, "type": "keyword", "doc_values": false },
                "description": { "type": "text" },
                "sort": { "index": false, "type": "keyword", "doc_values": false },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "application_usage_totals": { "dynamic": "false", "type": "object" },
            "originId": { "type": "keyword" },
            "dql-telemetry": {
              "properties": {
                "optInCount": { "type": "long" },
                "optOutCount": { "type": "long" }
              }
            },
            "updated_at": { "type": "date" },
            "search-telemetry": { "dynamic": "false", "type": "object" },
            "integration-instance": {
              "dynamic": "false",
              "properties": {
                "assets": { "type": "nested" },
                "templateName": { "type": "text" },
                "name": { "type": "text" },
                "creationDate": { "type": "date" },
                "dataSource": { "type": "text" }
              }
            },
            "observability-panel": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" }
              }
            },
            "visualization-visbuilder": {
              "properties": {
                "styleState": { "index": false, "type": "text" },
                "uiState": { "index": false, "type": "text" },
                "description": { "type": "text" },
                "visualizationState": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "map": {
              "properties": {
                "uiState": { "index": false, "type": "text" },
                "mapState": { "index": false, "type": "text" },
                "description": { "type": "text" },
                "layerList": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "dashboard": {
              "properties": {
                "hits": { "index": false, "type": "integer", "doc_values": false },
                "timeFrom": { "index": false, "type": "keyword", "doc_values": false },
                "timeTo": { "index": false, "type": "keyword", "doc_values": false },
                "refreshInterval": {
                  "properties": {
                    "display": { "index": false, "type": "keyword", "doc_values": false },
                    "section": { "index": false, "type": "integer", "doc_values": false },
                    "value": { "index": false, "type": "integer", "doc_values": false },
                    "pause": { "index": false, "type": "boolean", "doc_values": false }
                  }
                },
                "description": { "type": "text" },
                "timeRestore": { "index": false, "type": "boolean", "doc_values": false },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "optionsJSON": { "index": false, "type": "text" },
                "panelsJSON": { "index": false, "type": "text" }
              }
            },
            "query": {
              "properties": {
                "timefilter": { "type": "object", "enabled": false },
                "isTemplate": { "type": "boolean" },
                "query": {
                  "properties": {
                    "query": { "index": false, "type": "keyword" },
                    "language": { "type": "keyword" },
                    "dataset": {
                      "properties": {
                        "timeFieldName": { "type": "text" },
                        "language": { "type": "text" },
                        "id": { "type": "text" },
                        "title": { "type": "text" },
                        "type": { "type": "text" },
                        "dataSource": {
                          "properties": {
                            "meta": {
                              "properties": {
                                "name": { "type": "text" },
                                "sessionId": { "type": "text" }
                              }
                            },
                            "id": { "type": "text" },
                            "title": { "type": "text" },
                            "type": { "type": "text" }
                          }
                        }
                      }
                    }
                  }
                },
                "description": { "type": "text" },
                "filters": { "type": "object", "enabled": false },
                "title": { "type": "text" }
              }
            },
            "application_usage_transactional": { "dynamic": "false", "type": "object" },
            "ui-metric": {
              "properties": {
                "count": { "type": "integer" }
              }
            },
            "observability-visualization": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "url": {
              "properties": {
                "accessCount": { "type": "long" },
                "accessDate": { "type": "date" },
                "url": { "type": "text", "fields": { "keyword": { "ignore_above": 2048, "type": "keyword" } } },
                "createDate": { "type": "date" }
              }
            },
            "migrationVersion": {
              "dynamic": "true",
              "properties": {
                "config": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }
              }
            },
            "index-pattern": {
              "dynamic": "false",
              "properties": {
                "title": { "type": "text" },
                "type": { "type": "keyword" }
              }
            },
            "namespace": { "type": "keyword" },
            "observability-notebook": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "config": {
              "dynamic": "false",
              "properties": {
                "buildNum": { "type": "keyword" }
              }
            },
            "tsvb-validation-telemetry": {
              "properties": {
                "failedRequests": { "type": "long" }
              }
            },
            "homepage": {
              "properties": {
                "heroes": {
                  "properties": {
                    "id": { "type": "keyword" }
                  }
                },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "sections": {
                  "properties": {
                    "id": { "type": "keyword" }
                  }
                }
              }
            },
            "namespaces": { "type": "keyword" }
          }
        },
        "aliases": {}
      }
    • 命令3:修复kibana_template索引模板。
      PUT /_template/kibana_template
      {
        "order": 0,
        "index_patterns": [
          ".kibana",
          ".kibana_*"
        ],
        "settings": {
          "index": {
            "number_of_shards": "1",
            "priority": "1000",
            "auto_expand_replicas": "0-1"
          }
        },
        "mappings": {
          "_meta": {
            "migrationMappingPropertyHashes": {
              "augment-vis": "88f930f6b43c089a12bfc276c359d1eb",
              "application_usage_daily": "43b8830d5d0df85a6823d290885fc9fd",
              "visualization": "f819cf6636b75c9e76ba733a0c6ef355",
              "observability-search": "638ae3ab28e5faf2e02f00dd8091abaf",
              "references": "7997cf5a56cc02bdc9c93361bde732b0",
              "integration-template": "9033ba0b281fe1c88c3c56d8fd9d089d",
              "type": "2f4316de49999235636386fe51dc06c1",
              "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4",
              "search": "43012c7ebc4cb57054e0a490e4b43023",
              "originId": "2f4316de49999235636386fe51dc06c1",
              "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724",
              "updated_at": "00da57df13e94e9d98437d13ace4bfe0",
              "dql-telemetry": "d12a98a6f19a2d273696597547e064ee",
              "search-telemetry": "3d1b76c39bfb2cc8296b024d73854724",
              "integration-instance": "17ab914d1f92a5b03bbb194651c23b1c",
              "observability-panel": "df07b1a361c32daf4e6842c1d5521dbe",
              "visualization-visbuilder": "7a6fadcdaaf97b2b8b65d290fd8a3ba7",
              "map": "32fcfaba6c580bf048359fcb48ad5301",
              "dashboard": "40554caf09725935e2c02e02563a2d07",
              "query": "531cf50c8e0b1c9f610e263f878d124c",
              "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3",
              "application_usage_transactional": "3d1b76c39bfb2cc8296b024d73854724",
              "observability-visualization": "638ae3ab28e5faf2e02f00dd8091abaf",
              "url": "c7f66a0df8b1b52f17c28c4adb111105",
              "migrationVersion": "4a1746014a75ade3a714e1db5763276f",
              "index-pattern": "45915a1ad866812242df474eb0479052",
              "namespace": "2f4316de49999235636386fe51dc06c1",
              "observability-notebook": "638ae3ab28e5faf2e02f00dd8091abaf",
              "config": "c63748b75f39d0c54de12d12c1ccbc20",
              "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215",
              "namespaces": "2f4316de49999235636386fe51dc06c1",
              "homepage": "a8d79cfe4f79546aa5bbee73facc51dc"
            }
          },
          "dynamic": "strict",
          "properties": {
            "augment-vis": {
              "properties": {
                "visLayerExpressionFn": {
                  "properties": {
                    "args": { "dynamic": "true", "type": "object" },
                    "name": { "type": "text" },
                    "type": { "type": "text" }
                  }
                },
                "pluginResource": {
                  "properties": {
                    "id": { "type": "text" },
                    "type": { "type": "text" }
                  }
                },
                "originPlugin": { "type": "text" },
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "visName": { "index": false, "type": "keyword", "doc_values": false }
              }
            },
            "application_usage_daily": {
              "dynamic": "false",
              "properties": {
                "timestamp": { "type": "date" }
              }
            },
            "visualization": {
              "properties": {
                "savedSearchRefName": { "index": false, "type": "keyword", "doc_values": false },
                "description": { "type": "text" },
                "uiStateJSON": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "visState": { "index": false, "type": "text" }
              }
            },
            "observability-search": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "references": {
              "type": "nested",
              "properties": {
                "name": { "type": "keyword" },
                "id": { "type": "keyword" },
                "type": { "type": "keyword" }
              }
            },
            "integration-template": {
              "dynamic": "false",
              "properties": {
                "components": { "type": "nested" },
                "author": { "type": "text" },
                "displayName": { "type": "text" },
                "description": { "type": "text" },
                "type": { "type": "text" },
                "version": { "type": "text" },
                "statics": { "type": "nested" },
                "labels": { "type": "text" },
                "sourceUrl": { "type": "text" },
                "license": { "type": "text" },
                "assets": { "type": "nested" },
                "sampleData": { "type": "nested" },
                "name": { "type": "text" }
              }
            },
            "type": { "type": "keyword" },
            "sample-data-telemetry": {
              "properties": {
                "installCount": { "type": "long" },
                "unInstallCount": { "type": "long" }
              }
            },
            "search": {
              "properties": {
                "hits": { "index": false, "type": "integer", "doc_values": false },
                "columns": { "index": false, "type": "keyword", "doc_values": false },
                "description": { "type": "text" },
                "sort": { "index": false, "type": "keyword", "doc_values": false },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "application_usage_totals": { "dynamic": "false", "type": "object" },
            "originId": { "type": "keyword" },
            "dql-telemetry": {
              "properties": {
                "optInCount": { "type": "long" },
                "optOutCount": { "type": "long" }
              }
            },
            "updated_at": { "type": "date" },
            "search-telemetry": { "dynamic": "false", "type": "object" },
            "integration-instance": {
              "dynamic": "false",
              "properties": {
                "assets": { "type": "nested" },
                "templateName": { "type": "text" },
                "name": { "type": "text" },
                "creationDate": { "type": "date" },
                "dataSource": { "type": "text" }
              }
            },
            "observability-panel": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" }
              }
            },
            "visualization-visbuilder": {
              "properties": {
                "styleState": { "index": false, "type": "text" },
                "uiState": { "index": false, "type": "text" },
                "description": { "type": "text" },
                "visualizationState": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "map": {
              "properties": {
                "uiState": { "index": false, "type": "text" },
                "mapState": { "index": false, "type": "text" },
                "description": { "type": "text" },
                "layerList": { "index": false, "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                }
              }
            },
            "dashboard": {
              "properties": {
                "hits": { "index": false, "type": "integer", "doc_values": false },
                "timeFrom": { "index": false, "type": "keyword", "doc_values": false },
                "timeTo": { "index": false, "type": "keyword", "doc_values": false },
                "refreshInterval": {
                  "properties": {
                    "display": { "index": false, "type": "keyword", "doc_values": false },
                    "section": { "index": false, "type": "integer", "doc_values": false },
                    "value": { "index": false, "type": "integer", "doc_values": false },
                    "pause": { "index": false, "type": "boolean", "doc_values": false }
                  }
                },
                "description": { "type": "text" },
                "timeRestore": { "index": false, "type": "boolean", "doc_values": false },
                "title": { "type": "text" },
                "version": { "type": "integer" },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "optionsJSON": { "index": false, "type": "text" },
                "panelsJSON": { "index": false, "type": "text" }
              }
            },
            "query": {
              "properties": {
                "timefilter": { "type": "object", "enabled": false },
                "isTemplate": { "type": "boolean" },
                "query": {
                  "properties": {
                    "query": { "index": false, "type": "keyword" },
                    "language": { "type": "keyword" },
                    "dataset": {
                      "properties": {
                        "timeFieldName": { "type": "text" },
                        "language": { "type": "text" },
                        "id": { "type": "text" },
                        "title": { "type": "text" },
                        "type": { "type": "text" },
                        "dataSource": {
                          "properties": {
                            "meta": {
                              "properties": {
                                "name": { "type": "text" },
                                "sessionId": { "type": "text" }
                              }
                            },
                            "id": { "type": "text" },
                            "title": { "type": "text" },
                            "type": { "type": "text" }
                          }
                        }
                      }
                    }
                  }
                },
                "description": { "type": "text" },
                "filters": { "type": "object", "enabled": false },
                "title": { "type": "text" }
              }
            },
            "application_usage_transactional": { "dynamic": "false", "type": "object" },
            "ui-metric": {
              "properties": {
                "count": { "type": "integer" }
              }
            },
            "observability-visualization": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "url": {
              "properties": {
                "accessCount": { "type": "long" },
                "accessDate": { "type": "date" },
                "url": { "type": "text", "fields": { "keyword": { "ignore_above": 2048, "type": "keyword" } } },
                "createDate": { "type": "date" }
              }
            },
            "migrationVersion": {
              "dynamic": "true",
              "properties": {
                "config": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }
              }
            },
            "index-pattern": {
              "dynamic": "false",
              "properties": {
                "title": { "type": "text" },
                "type": { "type": "keyword" }
              }
            },
            "namespace": { "type": "keyword" },
            "observability-notebook": {
              "dynamic": "false",
              "properties": {
                "description": { "type": "text" },
                "title": { "type": "text" },
                "version": { "type": "integer" }
              }
            },
            "config": {
              "dynamic": "false",
              "properties": {
                "buildNum": { "type": "keyword" }
              }
            },
            "tsvb-validation-telemetry": {
              "properties": {
                "failedRequests": { "type": "long" }
              }
            },
            "homepage": {
              "properties": {
                "heroes": {
                  "properties": {
                    "id": { "type": "keyword" }
                  }
                },
                "kibanaSavedObjectMeta": {
                  "properties": {
                    "searchSourceJSON": { "index": false, "type": "text" }
                  }
                },
                "sections": {
                  "properties": {
                    "id": { "type": "keyword" }
                  }
                }
              }
            },
            "namespaces": { "type": "keyword" }
          }
        },
        "aliases": {}
      }

  3. 重新导入Sample Data验证故障是否解除。

    1. 在OpenSearch Dashboards左侧导航栏选择“Home”
    2. 单击“Try sample data”,选择“Sample flight data”
    3. 单击“Add data”,确认可成功导入,不再报错。

      如果没有“Add data”按钮,则先Remove导入失败的Sample Data。

相关文档