【问题标题】:How to authorize request in elastic search?如何在弹性搜索中授权请求?
【发布时间】:2019-09-20 19:11:27
【问题描述】:

我正在尝试发送任何请求以在弹性搜索中获取我的数据。我正在使用弹性搜索和 kibana 运行 docker。

我访问弹性的网址是:http:192.168.1.102:9200,我的凭据是 username: 'elastic ',password: MagicWord

我尝试使用 passorwd 和用户名:http://elastic.Magic@ 192.168.1.102:9200/storedevent 发出请求,但它不起作用。

我需要一个令牌来访问邮递员的弹性吗?

打印:

错误:

{
    "error": {
        "root_cause": [
            {
                "type": "security_exception",
                "reason": "missing authentication credentials for REST request [/storedevent]",
                "header": {
                    "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
                }
            }
        ],
        "type": "security_exception",
        "reason": "missing authentication credentials for REST request [/storedevent]",
        "header": {
            "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
        }
    },
    "status": 401
}

【问题讨论】:

    标签: elasticsearch post


    【解决方案1】:

    在邮递员中,您需要在基本身份验证中传递凭据而不是 url.

    【讨论】:

    • 很高兴能帮上忙。
    猜你喜欢
    • 2020-11-20
    • 2012-11-29
    • 1970-01-01
    • 1970-01-01
    • 2018-03-10
    • 1970-01-01
    • 1970-01-01
    • 2015-05-26
    • 1970-01-01
    相关资源
    最近更新 更多