# How to reinstall X-Pack?

**URL:** https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248
**Category:** Elasticsearch
**Created:** [December 16, 2016, 7:03am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248 "2016-12-16T07:03:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)
#### Post date: [December 16, 2016, 7:03am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/1 "2016-12-16T07:03:20Z")

</div>

Hi Team,

We are using X-Pack now. But after we follow the instructure to uninstall and install it again, we found the license issue date. So if we want to keep using the X-Pack till the actual license purchase, how to do?

Before

> ```
> {
> "license" : {
> "status" : "active",
> "uid" : "38e6d6bb-8619-45b4-ac50-f38f006942ff",
> "type" : "trial",
> "issue_date" : "2016-11-17T03:49:34.858Z",
> "issue_date_in_millis" : 1479354574858,
> "expiry_date" : "2016-12-17T03:49:34.858Z",
> "expiry_date_in_millis" : 1481946574858,
> "max_nodes" : 1000,
> "issued_to" : "elk5-es-poc-cluster-dev",
> "issuer" : "elasticsearch",
> "start_date_in_millis" : -1
> }
> }
> 
> ```

After

> ```
> {
> "license" : {
> "status" : "active",
> "uid" : "38e6d6bb-8619-45b4-ac50-f38f006942ff",
> "type" : "trial",
> "issue_date" : "2016-11-17T03:49:34.858Z",
> "issue_date_in_millis" : 1479354574858,
> "expiry_date" : "2016-12-17T03:49:34.858Z",
> "expiry_date_in_millis" : 1481946574858,
> "max_nodes" : 1000,
> "issued_to" : "elk5-es-poc-cluster-dev",
> "issuer" : "elasticsearch",
> "start_date_in_millis" : -1
> }
> }
> 
> ```

---

<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: [December 16, 2016, 7:36am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/2 "2016-12-16T07:36:31Z")

</div>

You can ask sales at elastic dot co to extend your trial period.  
You can also remove the data dir (which will remove all existing data) and start again elasticsearch.

---

<div class="post-metadata">

### Author: ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)
#### Post date: [December 16, 2016, 7:41am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/3 "2016-12-16T07:41:28Z")

</div>

Hi @dadoonet,

So do you mean if we Delete all the data from ES and restart, it will auto extend the license?

---

<div class="post-metadata">

### Author: ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)
#### Post date: [December 16, 2016, 7:42am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/4 "2016-12-16T07:42:55Z")

</div>

About the "data dir", can we use  
curl -XDELETE -u elastic:changeme '[http://Host](http://Host):Port/\*'  
to do the same way?

---

<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: [December 16, 2016, 8:36am UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/5 "2016-12-16T08:36:09Z")

</div>

I meant that if you start a new empty cluster with the license plugin it will be considered as a trial license starting from today.

Remove all indices won't work.

If you want to go that way (again **it will remove all existing stuff** you did):

- shutdown all you nodes
- on each node, remove the data dir `rm -r data`
- start again the nodes

It's exactly the same thing as provisioning a new machine and installing everything from scratch.

---

<div class="post-metadata">

### Author: ![chris2016](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@chris2016](https://discuss.elastic.co/u/chris2016)
#### Post date: [December 22, 2016, 7:03pm UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/6 "2016-12-22T19:03:32Z")

</div>

Hi Guys,

```
Is the X-PACK free to use or under trial license? If it is the latter, where can I find the expired date?

thanks.

```

Cheers,  
Chris

---

<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: [December 22, 2016, 7:47pm UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/7 "2016-12-22T19:47:47Z")

</div>

When you start it, it tells you when the expiration date is in logs.

You have a trial but you can ask for a free basic license which gives you access to monitoring and profiling UI.

See [https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions)

---

<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: [January 19, 2017, 7:48pm UTC](https://discuss.elastic.co/t/how-to-reinstall-x-pack/69248/8 "2017-01-19T19:48:01Z")

</div>

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