# Elasticsearch stop working after enable x-pack

**URL:** <https://discuss.elastic.co/t/elasticsearch-stop-working-after-enable-x-pack/194955>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 13, 2019, 5:34am UTC](https://discuss.elastic.co/t/elasticsearch-stop-working-after-enable-x-pack/194955 "2019-08-13T05:34:25Z")\
**Posts on this page:** 1\
**Showing post:** 42

<div class="post-metadata">

**Author:** ![Ayush\_Verma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_verma/32/46709_2.png) [@Ayush\_Verma](https://discuss.elastic.co/u/Ayush_Verma)\
**Post date:** [August 15, 2019, 3:57am UTC](https://discuss.elastic.co/t/elasticsearch-stop-working-after-enable-x-pack/194955/42 "2019-08-15T03:57:37Z")

</div>

I am sorry that i am getting it very slow, i set password for elastic and kibana as well, but can you please tell me how to choose native realm i made a changes in elasticsearch.yml file here it is :

```
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.audit.enabled: true
#xpack.monitoring.enabled: true
xpack.security.authc.realms.native: xpack:
  security:
    authc:
      realms:
        native:
          native1:
            order: 0
#---------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

```

can you please tell what is the right way to configure native realm.

kibana.yml:

```
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
#elasticsearch.preserveHost: true

# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
kibana.index: kibanaindx

# The default application to load.
#kibana.defaultAppId: "home"

# If your Elasticsearch is protected with basic authentication, these settings provide
# the username and password that the Kibana server uses to perform maintenance on the Kibana
# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
# is proxied through the Kibana server.
elasticsearch.username: "kibana"
elasticsearch.password: "kibana"
```

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-stop-working-after-enable-x-pack/194955)._
