# Invalid license found

**URL:** <https://discuss.elastic.co/t/invalid-license-found/179092>\
**Category:** Elasticsearch\
**Created:** [April 30, 2019, 1:51pm UTC](https://discuss.elastic.co/t/invalid-license-found/179092 "2019-04-30T13:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddie35](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Eddie35](https://discuss.elastic.co/u/Eddie35)\
**Post date:** [April 30, 2019, 1:51pm UTC](https://discuss.elastic.co/t/invalid-license-found/179092/1 "2019-04-30T13:51:05Z")

</div>

Hello,  
I am installing ELK following the instructions on this website. [https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04).  
For the command  
`sudo filebeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'`  
, I get this response : `'Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://localhost:9200: Connection marked as failed because the onConnect callback failed: invalid license found, requires a basic or a valid trial license and received Open source]'`

Do you know what's happening ? Do i need a license for installing ELK ?

Thanks in advance.

Eddie

---

<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:** [April 30, 2019, 4:34pm UTC](https://discuss.elastic.co/t/invalid-license-found/179092/2 "2019-04-30T16:34:49Z")

</div>

You need to install the default package of elasticsearch not the oss one.

---

<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:** [May 28, 2019, 4:34pm UTC](https://discuss.elastic.co/t/invalid-license-found/179092/3 "2019-05-28T16:34:53Z")

</div>

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