{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST

错误如下:

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


错入原因:

    是Elasticsearch和kibana在加入插件x-pack之后,的安全问题,在加入了x-pack需要输入用户名和密码才能进行对ELK的操作

错误解决:加入用户名和密码属性

     其中 elastic是用户名(默认),changme是密码(默认)

     curl -u elastic -XPUT ‘localhost:9200/idx’

猜你喜欢

转载自blog.csdn.net/qq_33286695/article/details/84991746