windows - Elasticsearch - 在 Windows 中使用 Sense Web 插件批量插入

标签 windows elasticsearch kibana sense elasticsearch-bulk-api

我正在尝试按照 Elasticsearch 教程(https://www.elastic.co/guide/en/kibana/current/getting-started.html)使用_bulk api导入accounts.json数据。我使用 google-chrome 的 Sense 插件来完成此任务。

当我将 URL curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json 粘贴到 Sense 上时,其转换为 POST/bank/account/_bulk?pretty

解决方案在这里:Kibana: Cant import Shakespeare.json on Sense Web Plugin ,表示使用CURL命令。但在 Windows 上,curl 命令无法识别。

curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json “curl”不被识别为内部或外部命令、可操作程序或批处理文件。

最佳答案

试试这个:

POST /<indexName>/<type>/_bulk

复制文件accounts.json的内容

然后运行。

关于windows - Elasticsearch - 在 Windows 中使用 Sense Web 插件批量插入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35677626/

相关文章:

windows - 在 Mac 10.6/7/8/Windows XP/Vista/7 上自动打开 USB 驱动器

elasticsearch - 如何在搜索查询中列出索引中具有至少1个值的所有字段

nginx - Kubernetes nginx ingress rabbitmq 管理和 kibana

elasticsearch - ElasticSearch可以在首次比赛搜索中停止吗?

elasticsearch - 我可以在Logstash和Elasticsearch之间使用Kafka吗? (使用两个卡夫卡)

json - Elasticsearch-Sense-索引JSON文件?

elasticsearch - 如何从Elasticsearch数据中为Vega中的路径创建索引?

c++ - C++ 中 PC 关闭的强制处理

java - Windows 中的 Docker : Failed to load native library 'libnative-platform.so' for Linux amd64

windows - 我的程序应该如何决定安装在 "Program Files (x86)"下?