Unable to authenticate user [elastic] for REST request

Hello @warkolm

Since few weeks, all of sudden, getting below while I am trying to curl to one of my elastic nodes. And latest data is not getting updated in Kibana dashboards.

Elastic search version is 7.8.0.

curl --user USERNAME:PASSWORD -X GET "http://localhost:8800/?pretty"

{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "unable to authenticate user [elastic] for REST request [/?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
}
],
"type" : "security_exception",
"reason" : "unable to authenticate user [elastic] for REST request [/?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
},
"status" : 401

Could you please suggest me on what should I do now?

Below is the Kibana.yml and elasticsearch.yml configurations.

kibana.yml

server.host: "HOSTNAME"
server.basePath: "/kibana-prod"
server.rewriteBasePath: true
elasticsearch.hosts: ["http://localhost:8800", "http://localhost:8900", "http://localhost:9000"]
path.data: /PATH/kibana/1/data
logging.dest: /PATH/1/log/kibana.log
logging.rotate.enabled: true
logging.quiet: true

elasticsearch.username: "USERNAME"
elasticsearch.password: "PASSWORD"

elasticsearch.yml

cluster.name: CLUSTERNAME
node.name: prod-node-1
cluster.initial_master_nodes:

  • prod-node-1
  • prod-node-2
  • prod-node-3
    discovery.zen.minimum_master_nodes: 2
    node.master: true
    node.data: true
    path.data: /PATH/elasticsearch/1/lib
    path.logs: /PATH/elasticsearch/1/logs
    http.port: 8800
    bootstrap.memory_lock: true

xpack.security.enabled: true
xpack.security.authc.realms:
native.native1:
order: 0