【发布时间】: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