# Current license is non-compliant for \[security\]

**URL:** https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272
**Category:** Elasticsearch
**Created:** [June 25, 2018, 2:05pm UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272 "2018-06-25T14:05:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stevizik](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@stevizik](https://discuss.elastic.co/u/stevizik)
#### Post date: [June 25, 2018, 2:05pm UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272/1 "2018-06-25T14:05:51Z")

</div>

Hi all,

i have a test Elasticsearch/Kibana installation and on Console giving the command _cluster/health_ returns the following

```
{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "current license is non-compliant for [security]",
        "license.expired.feature": "security"
      }
    ],
    "type": "security_exception",
    "reason": "current license is non-compliant for [security]",
    "license.expired.feature": "security"
  },
  "status": 403
}

```

I have searched on forums and the most obvious answer is that the license of Xpack is expired. Is it possible to disable Xpack ?

Thanks

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [June 25, 2018, 7:36pm UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272/2 "2018-06-25T19:36:37Z")

</div>

Hi Stefanos,

You can [explicitly disable X-Pack security](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling) if you wish to do so.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 25, 2018, 10:34pm UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272/3 "2018-06-25T22:34:19Z")

</div>

If it's expired then just apply a free Basic license. That'll disable security and still give you access to Monitoring etc.

---

<div class="post-metadata">

### Author: ![stevizik](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@stevizik](https://discuss.elastic.co/u/stevizik)
#### Post date: [July 4, 2018, 7:54am UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272/4 "2018-07-04T07:54:45Z")

</div>

Just inserted the  
xpack.security.enabled: false

in elasticsearch.yml and cluster/health doesn't report any error. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 1, 2018, 7:54am UTC](https://discuss.elastic.co/t/current-license-is-non-compliant-for-security/137272/5 "2018-08-01T07:54:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
