# Unable to update Elasticsearch license

**URL:** <https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 3:02pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316 "2015-11-23T15:02:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://discuss.elastic.co/u/Dina)\
**Post date:** [November 23, 2015, 3:02pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/1 "2015-11-23T15:02:59Z")

</div>

the guide of Shield is out of date.  
The license is missing 'S'  
curl -XPUT -u admin 'http://:/\_license' -d @license.json

But even after that the license status of the cluster didn't update to valid.

---

<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:** [November 23, 2015, 3:57pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/2 "2015-11-23T15:57:48Z")

</div>

Can you link to the page which has this issue?

---

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://discuss.elastic.co/u/Dina)\
**Post date:** [November 23, 2015, 4:19pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/3 "2015-11-23T16:19:21Z")

</div>

This is the link : [https://www.elastic.co/guide/en/shield/current/license-management.html](https://www.elastic.co/guide/en/shield/current/license-management.html)

When you use \_license it gives me invalid index name. when I added the 's' \_licenses . the acknowledge returns with true but the license is not updated.

Could you please direct me to a correct docuementation ?

---

<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:** [November 23, 2015, 4:34pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/4 "2015-11-23T16:34:15Z")

</div>

I think you are doing something wrong. The documentation looks correct to me and I double checked with the code source. `_license` is the end point.

May be you did not install the license plugin or you did not restart the nodes?

---

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://discuss.elastic.co/u/Dina)\
**Post date:** [November 23, 2015, 4:41pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/5 "2015-11-23T16:41:20Z")

</div>

I already installed the license plugin and we used to have a valid license but got expired. I am only trying to update the license which should be: curl -XPUT -u admin 'HTTP://:9200/\_license' -d @new\_license.json  
, I don't need to restart the nodes as mentioned in the documentation

While in another documentation [https://www.elastic.co/guide/en/shield/shield-1.2/license-management.html](https://www.elastic.co/guide/en/shield/shield-1.2/license-management.html)

The license has the S at the end. I tried it, but the license status is still expired.

---

<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:** [November 23, 2015, 4:53pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/6 "2015-11-23T16:53:13Z")

</div>

Which elasticsearch version are you using?

---

<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:** [November 23, 2015, 4:56pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/7 "2015-11-23T16:56:01Z")

</div>

Actually, read the documentation which corresponds to the version you are using: [https://www.elastic.co/guide/en/shield/index.html](https://www.elastic.co/guide/en/shield/index.html)

Note that from elasticsearch 2.0, the license plugin uses the same version number as elasticsearch.

---

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://discuss.elastic.co/u/Dina)\
**Post date:** [November 24, 2015, 10:28am UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/8 "2015-11-24T10:28:37Z")

</div>

I am using Elasticsearch 1.5.2 and Shield 1.3.1

I used the right documentation with the "licenses" and I got the acknowledge back with a true and valid license but when I query the licenses I can't see the new license. I already have three expired licenses. Could it be the problem? Do you know how to delete them?

---

<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:** [July 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/unable-to-update-elasticsearch-license/35316/9 "2017-07-05T23:36:20Z")

</div>


