Well I have created a 2 node master and a single data node cluster:
master:-config
cluster.name: elasticsearch
bootstrap.memory_lock: false
network.host: 0.0.0.0
xpack.security.authc.anonymous.username: anonymous_user
xpack.security.authc.anonymous.roles: anonymous_user
xpack.security.authc.anonymous.authz_exception: true
discovery.zen.ping.unicast.hosts: tasks.es-master
discovery.zen.minimum_master_nodes: 2
node.master: true
node.data: false
node.ingest: false
search.remote.connect: false
xpack.monitoring.enabled: false
data node config:
cluster.name: elasticsearch
bootstrap.memory_lock: false
network.host: 0.0.0.0
xpack.security.authc.anonymous.username: anonymous_user
xpack.security.authc.anonymous.roles: anonymous_user
xpack.security.authc.anonymous.authz_exception: true
discovery.zen.ping.unicast.hosts: tasks.es-master
discovery.zen.minimum_master_nodes: 2
node.data: true
node.master: false
node.ingest: false
search.remote.connect: false
xpack.monitoring.enabled: false
This is the user json data:
{
"elastic": {
"username": "elastic",
"roles": [
"superuser"
],
"full_name": null,
"email": null,
"metadata": {
"_reserved": true
},
"enabled": true
},
"kibana": {
"username": "kibana",
"roles": [
"kibana_system"
],
"full_name": null,
"email": null,
"metadata": {
"_reserved": true
},
"enabled": true
},
"logstash_system": {
"username": "logstash_system",
"roles": [
"logstash_system"
],
"full_name": null,
"email": null,
"metadata": {
"_reserved": true
},
"enabled": true
},
"anonymous_user": {
"username": "anonymous_user",
"roles": [
"anonymous_user"
],
"full_name": null,
"email": null,
"metadata": {
"_reserved": true
},
"enabled": true
}
}