加载中

示例数据

使用示例数据是开始探索系统和熟悉环境的绝佳方式。有几种方法可以轻松地将示例数据摄入 Elasticsearch。

最简单的方法是添加我们的一个或多个示例数据集。这些数据集附带了示例可视化、仪表板等,可帮助您在添加自己的数据之前探索界面。

如果您没有数据,首次运行 Kibana 时系统会提示您安装这些包。

注意

要安装示例数据集,您需要 Integrations(集成)all Kibana 权限。在 Stack Management(堆栈管理) 中管理您的角色、权限和空间。

  1. 使用全局搜索字段打开 Integrations(集成) 页面,然后使用集成搜索字段搜索 Sample Data(示例数据)
  2. 点击 Sample Data(示例数据) 以打开 Add data(添加数据) 页面。
  3. 选择要安装的示例数据集,然后点击 Install data(安装数据)
Sample data sets
注意

在 9.0 至 9.3 版本中,您必须先展开 Other sample data sets(其他示例数据集) 部分,才能看到可用的示例数据集。

Sample data sets in versions 9.0 to 9.3

或者,运行提供的 makelogs 脚本来生成示例数据。

node scripts/makelogs --auth <username>:<password>
		

默认的用户名和密码组合为 elastic:changeme

重要提示

确保在 Elasticsearch 启动并运行之后执行 node scripts/makelogs

您还可以使用 Integrations(集成) 页面上的 Upload a file(上传文件) 选项上传您自己的示例数据。有关详细说明,请参阅 Upload data files(上传数据文件)

© . This website operates independently and is not affiliated with or endorsed by Elasticsearch B.V. All brand names, logos, and trademarks are the property of their respective owners.