# Basic License XPack Security for ES 5.2.1

**URL:** https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [July 22, 2021, 2:18pm UTC](https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396 "2021-07-22T14:18:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![spr](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@spr](https://discuss.elastic.co/u/spr)
#### Post date: [July 22, 2021, 2:18pm UTC](https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396/1 "2021-07-22T14:18:54Z")

</div>

Hi,

I'm trying to use the following basic license which is supposed to have xpack security available. However when I deploy the same. I get the following error

{"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 used the license generated from the following portal. I'm attaching the following license file that was used.

> **[Register | Elastic](https://license.elastic.co/registration/)**

This portal does indicate that the Basic Free Tier Features are available for older versions less than 6.3.

Could you please advise on the same?

Thanks  
spr

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 22, 2021, 2:32pm UTC](https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396/2 "2021-07-22T14:32:20Z")

</div>

Security feature is available in basic level from 6.8 version.  
Your cluster is a way too old anyway so it's time to upgrade to 7.13.4.

---

<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: [July 25, 2021, 11:20pm UTC](https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396/3 "2021-07-25T23:20:12Z")

</div>

5.X is [EOL](https://www.elastic.co/support/eol), please upgrade ASAP.

---

<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 22, 2021, 11:20pm UTC](https://discuss.elastic.co/t/basic-license-xpack-security-for-es-5-2-1/279396/4 "2021-08-22T23:20:56Z")

</div>

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