【问题标题】:SSL error received even though "ssl" is set to "false"即使“ssl”设置为“false”,仍收到 SSL 错误
【发布时间】:2019-04-10 18:08:38
【问题描述】:

这是我的logstash.conf 的input 部分:

input {
    http {
        host => "127.0.0.1"
        port => 31311 
        ssl => false
    }
}

我有一个名为twitter_new 的索引。我想通过 cURL 发送 DELETE 请求以删除整个索引。这是我的 cURL 命令:

C:\Users\Me\Downloads\curl-7.64.1-win64-mingw\bin> .\curl.exe -XDELETE "https://127.0.0.1:9200/twitter_new"

回复如下:

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

我该如何解决这个问题?

注意: SSL 错误仅在我发送 DELETE 请求时遇到 -- 我可以成功发送 PUT 和 POST 请求。

【问题讨论】:

    标签: rest elasticsearch logstash elasticsearch-plugin


    【解决方案1】:

    发出什么类型的请求并不重要。尝试在 curl 请求上从 https 更改为 http,因为 SSL 设置为 false。更改此设置应该有效。
    还要检查您是否没有带有 curl --version 的非常旧版本的 curl 并在需要时更新。

    【讨论】:

      猜你喜欢
      • 2015-02-27
      • 2018-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-24
      • 2011-03-18
      • 2015-10-04
      • 1970-01-01
      相关资源
      最近更新 更多