# X-pack basic

**URL:** https://discuss.elastic.co/t/x-pack-basic/108709
**Category:** Elasticsearch
**Created:** [November 22, 2017, 12:08pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709 "2017-11-22T12:08:15Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![GambitK](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@GambitK](https://discuss.elastic.co/u/GambitK)
#### Post date: [November 22, 2017, 12:08pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/1 "2017-11-22T12:08:15Z")

</div>

I've recently registered for a basic license of x-pack and tried installing it without luck.  
I only want the kibana UI feature for logstash that's available in the basic license. I don't want authentication. Is it possible to install x-pack without the authentication feature?

---

<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 22, 2017, 1:23pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/2 "2017-11-22T13:23:04Z")

</div>

I moved your question to #x-pack

Sure. You can always manually disable security. See [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/security-settings.html#general-security-settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/security-settings.html#general-security-settings)

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 22, 2017, 10:40pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/3 "2017-11-22T22:40:58Z")

</div>

> [@GambitK](#):
>
> I've recently registered for a basic license of x-pack and tried installing it without luck.

Can you provide more details? If you had problems installing the licence, we can help with that.

---

<div class="post-metadata">

### Author: ![GambitK](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@GambitK](https://discuss.elastic.co/u/GambitK)
#### Post date: [November 23, 2017, 2:27am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/4 "2017-11-23T02:27:47Z")

</div>

Thanks for the reply, I manually disabled security and was able to install the license.  
Thank you.

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [November 23, 2017, 8:20am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/5 "2017-11-23T08:20:28Z")

</div>

Hi @GambitK  
I am also trying to use elasticsearch image with basic x-pack enabled.  
I am creating my elasticsearch cluster and deploying everything using kubernetes.  
After installation of all the nodes, it prompts me for username and password for API calls.  
I need to create password for default user.  
How to create password for elastic user?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 23, 2017, 8:56am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/6 "2017-11-23T08:56:21Z")

</div>

If you want to use the basic x-pack license (which includes monitoring, but not security) then the easiest path forward it to simply disable security so you can install the license.

Add

```auto
xpack.security.enabled: false

```

to your `config/elasticsearch.yml` file (on every node).

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [November 23, 2017, 12:45pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/7 "2017-11-23T12:45:19Z")

</div>

Hi @TimV  
Thanks for response!  
It worked for me, it is not prompting for username and password but though i have used the docker image [docker.elastic.co/elasticsearch/elasticsearch:6.0.0](http://docker.elastic.co/elasticsearch/elasticsearch:6.0.0), to use x-pack with basic lisence.  
I got x-pack with platinum licence with trial version of 1 month and i want basic licence for 1 year only.

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 23, 2017, 1:06pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/8 "2017-11-23T13:06:11Z")

</div>

It sounds like something went wrong with your docker setup - that image should configure X-Pack with a basic license.

What does your Dockerfile look like?

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [November 23, 2017, 1:26pm UTC](https://discuss.elastic.co/t/x-pack-basic/108709/10 "2017-11-23T13:26:53Z")

</div>

@TimV  
My dockerfile looks like following:  
FROM [docker.elastic.co/elasticsearch/elasticsearch:6.0.0](http://docker.elastic.co/elasticsearch/elasticsearch:6.0.0)  
COPY elasticsearch.yml /usr/share/elasticsearch/config/

ENV ES\_JAVA\_OPTS "-Xms512m -Xmx512m"  
ENV CLUSTER\_NAME elasticsearch-default  
ENV NODE\_MASTER true  
ENV NODE\_DATA true  
ENV NODE\_INGEST true  
ENV HTTP\_ENABLE true  
ENV NETWORK\_HOST _site_  
ENV HTTP\_CORS\_ENABLE true  
ENV HTTP\_CORS\_ALLOW\_ORIGIN \*  
ENV NUMBER\_OF\_MASTERS 1  
ENV MAX\_LOCAL\_STORAGE\_NODES 1  
ENV SHARD\_ALLOCATION\_AWARENESS ""  
ENV SHARD\_ALLOCATION\_AWARENESS\_ATTR ""  
ENV MEMORY\_LOCK true  
ENV DISCOVERY\_SERVICE elasticsearch-discovery  
ENV MEMORY\_LOCK false

VOLUME ["/data"]

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 24, 2017, 2:28am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/11 "2017-11-24T02:28:22Z")

</div>

> [@manya12](#):
>
> COPY elasticsearch.yml /usr/share/elasticsearch/config/

This is the problem.  
You are overwriting the container's `elasticsearch.yml` with your own. The elastic provided containers have various configuration settings inside the elasticsearch.yml that control their behaviour, including the set of features that are enabled.

If you want to use your own elasticsearch.yml, then you should enable and disable the features that you intend to use.

> [@manya12](#):
>
> i want basic licence for 1 year only.

The elastic provided "basic" flavour docker image only includes a 30 day license. If you want a 1 year license then you need to register at [https://register.elastic.co/](https://register.elastic.co/)  
You can apply that basic license to any cluster that has x-pack installed (regardless of whether it came from the "basic" or "platinum" flavoured image).

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [November 24, 2017, 8:04am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/12 "2017-11-24T08:04:55Z")

</div>

> [@TimV](#):
>
> You can apply that basic license to any cluster that has x-pack installed (regardless of whether it came from the "basic" or "platinum" flavoured image

> Blockquote  
> I have registered on [https://register.elastic.co/](https://register.elastic.co/) and has obtained my free basic licence for an year.  
> How to use that license with my es-cluster which is deployeed on kubernetes using basic docker image of elasticsearch.  
> As after obtaining licence, it requires to be updated, which is referred here  
> [License Management | X-Pack for the Elastic Stack [6.2] | Elastic](https://www.elastic.co/guide/en/x-pack/current/installing-license.html)

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 24, 2017, 9:18am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/13 "2017-11-24T09:18:47Z")

</div>

I'm sorry I don't understand the question - the page you linked to explains how to install the licence. Is something not working?

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [November 24, 2017, 9:58am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/14 "2017-11-24T09:58:51Z")

</div>

I have the licence with me, and i need to use it in my elasticsearch cluster running in kubernetes. How can i do it?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 24, 2017, 10:53am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/15 "2017-11-24T10:53:05Z")

</div>

The link you posted has a curl command for installing the licence - have you tried to use that? Is there a problem?

---

<div class="post-metadata">

### Author: ![manya12](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@manya12](https://discuss.elastic.co/u/manya12)
#### Post date: [December 15, 2017, 8:19am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/16 "2017-12-15T08:19:29Z")

</div>

@TimV  
It worked for me with those curl commands.  
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: [January 12, 2018, 8:19am UTC](https://discuss.elastic.co/t/x-pack-basic/108709/17 "2018-01-12T08:19:34Z")

</div>

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