# License problem foe xpack for logstash-6.2.2

**URL:** <https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544>\
**Category:** Logstash\
**Created:** [March 19, 2018, 11:43am UTC](https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544 "2018-03-19T11:43:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanchan\_pingale](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kanchan\_pingale](https://discuss.elastic.co/u/kanchan_pingale)\
**Post date:** [March 19, 2018, 11:43am UTC](https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544/1 "2018-03-19T11:43:38Z")

</div>

Once I start logstash, the error is as follows:  
Elasticsearch at URL '[http://localhost:9200/\_xpack](http://localhost:9200/_xpack)'  
[2018-03-19T04:33:00,946][ERROR][logstash.licensechecker.licensemanager] Unable to retrieve license information from license server {:message=\>"Got response code '401' contacting Elasticsearch at URL '[http://localhost:9200/\_xpack](http://localhost:9200/_xpack)'", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError"}  
[2018-03-19T04:33:00,950][WARN][logstash.licensechecker.xpackinfo] Nil response from License Server  
[2018-03-19T04:33:00,978][INFO][logstash.pipeline] Pipeline started {"pipeline.id"=\>".monitoring-logstash"}  
[2018-03-19T04:33:01,101][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>[".monitoring-logstash"]}  
[2018-03-19T04:33:01,104][ERROR][logstash.inputs.metrics] Monitoring is not available: License information is currently unavailable. Please make sure you have added your production elasticsearch connection info in the xpack.monitoring.elasticsearch settings.  
[2018-03-19T04:33:02,044][INFO][logstash.pipeline] Pipeline terminated {"pipeline.id"=\>".monitoring-logstash"}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 19, 2018, 1:27pm UTC](https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544/2 "2018-03-19T13:27:09Z")

</div>

Have you configured username and password for your local ES instance in logstash.yml?

---

<div class="post-metadata">

**Author:** ![kanchan\_pingale](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kanchan\_pingale](https://discuss.elastic.co/u/kanchan_pingale)\
**Post date:** [March 20, 2018, 9:17am UTC](https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544/3 "2018-03-20T09:17:23Z")

</div>

Yes I have!

---

<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:** [April 17, 2018, 9:17am UTC](https://discuss.elastic.co/t/license-problem-foe-xpack-for-logstash-6-2-2/124544/4 "2018-04-17T09:17:25Z")

</div>

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