【问题标题】:curl in command in elastic search, error mesage 404 does not make senseelasticsearch中的curl命令,错误消息404没有意义
【发布时间】:2018-07-19 09:34:31
【问题描述】:

我在 linux 终端中输入以下命令:

curl -XGET http://something_here.net:5005

我得到: var hashRoute = '/app/kibana'; var defaultRoute = '/app/kibana';

var hash = window.location.hash;
if (hash.length) {
  window.location = hashRoute + hash;
} else {
  window.location = defaultRoute;

然后我尝试: curl -XGET http://something_here.net:5005/_all/_mappings

我得到: {"statusCode":404,"error":"Not Found","message":"Not Found"}

我尝试在 Elastic Search 中编写相同的命令(ES 自动删除关键字并替换为 )。我确实收到了结果!

{
  "statistic-[...]": {
    "mappings": {
      "statistic": {
        "properties": {

[...]

为什么我在 Linux 中通过 curl 没有得到相同的结果?

【问题讨论】:

    标签: linux elasticsearch curl


    【解决方案1】:

    您的 URL http://something_here.net:5005 指向您的 Kibana Web 控制台。这不是您的 elasticsearch API,它将在其他地方。默认为 9200 端口。

    【讨论】:

      猜你喜欢
      • 2020-01-26
      • 1970-01-01
      • 1970-01-01
      • 2017-12-15
      • 2019-06-28
      • 2021-07-19
      • 2012-04-20
      • 2017-07-04
      • 2012-12-28
      相关资源
      最近更新 更多