# License Updating in X-pack

**URL:** <https://discuss.elastic.co/t/license-updating-in-x-pack/132444>\
**Category:** Elasticsearch\
**Created:** [May 18, 2018, 9:15am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444 "2018-05-18T09:15:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:15am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/1 "2018-05-18T09:15:50Z")

</div>

Where should I use this command to upgrade my licencse?  
`curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -H "Content-Type: application/json" -d @license.json`

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 18, 2018, 9:20am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/2 "2018-05-18T09:20:16Z")

</div>

From the terminal or via kibana dev tools.

please note you will be prompted for the elastic user password and please ensure that the license file is correctly placed here: @`license.json` exactly after the `@`

---

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:22am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/3 "2018-05-18T09:22:01Z")

</div>

In any particular directory or simply open terminal and run?

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 18, 2018, 9:24am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/4 "2018-05-18T09:24:20Z")

</div>

within the exact directory where the downloaded license file resides..

---

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:29am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/5 "2018-05-18T09:29:31Z")

</div>

curl: (7) Failed to connect to ip port xxxx: Timed out

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 18, 2018, 9:42am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/6 "2018-05-18T09:42:09Z")

</div>

can you share the full command you just ran?

did you `'http://<host>:<port>/_xpack/license'` update the host and port sections here to point to your elasticsearch cluster and the port is it running on?

---

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:42am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/7 "2018-05-18T09:42:35Z")

</div>

Yes I did.  
`curl -XPUT -u elastic "xxxxxxxxx/_xpack/license" -H "Content-Type: application/json" -d @license.json`

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 18, 2018, 9:46am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/8 "2018-05-18T09:46:21Z")

</div>

`host`:`port`?

---

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:48am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/9 "2018-05-18T09:48:59Z")

</div>

I can not share host and port (company policy).

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 18, 2018, 9:52am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/10 "2018-05-18T09:52:30Z")

</div>

Sure given the `xxxxxxxxx` I wanted to know if the port was specified, which from your response I gauge it is.

curl `Timed out`, you need to be in a position where you can talk to elasticsearch from the terminal you reside at.

---

<div class="post-metadata">

**Author:** ![raman2.0](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@raman2.0](https://discuss.elastic.co/u/raman2.0)\
**Post date:** [May 18, 2018, 9:53am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/11 "2018-05-18T09:53:16Z")

</div>

I did not understand. Can you be more specific?

---

<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:** [June 15, 2018, 9:53am UTC](https://discuss.elastic.co/t/license-updating-in-x-pack/132444/12 "2018-06-15T09:53:18Z")

</div>

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