Elasticsearch 导入 kibana 的样例数据

10次阅读

共计 461 个字符,预计需要花费 2 分钟才能阅读完成。

1. 下载数据
下载地址
2. 根据官方页面说明建立相关索引
3. 将数据导入 Elasticsearch

必须在文件目录下执行导入命令,windows 下需要将单引号替换为双引号
curl -H “Content-Type: application/json” -XPOST “localhost:9200/bank/account/_bulk?pretty&refresh” –data-binary “@accounts.json”
curl -H “Content-Type: application/x-ndjson” -XPOST “localhost:9200/_bulk?pretty” –data-binary @logs.jsonl
curl -H “Content-Type: application/x-ndjson” -XPOST “localhost:9200/shakespeare/doc/_bulk?pretty” –data-binary @shakespeare_6.0.json

Windows 的 cmd 没有 curl 功能,我是在 cmder 中执行的

正文完
 0