# AWS Elasticsearch service and filebeat

**URL:** <https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 29, 2020, 1:34pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700 "2020-10-29T13:34:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [October 29, 2020, 1:34pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700/1 "2020-10-29T13:34:36Z")

</div>

Hi all.  
For testing purposes, I ve installed AWS Elasticsearch service in my account and I have access to kibana. I tried also to send some data with CURL and it's all ok.  
Now I was trying to setup filebeat on my laptop and on my k8s cluster on minikube, but I have pretty much the same issue with an error like

**Connection marked as failed because the onConnect callback failed: cannot retrieve the elasticsearch license from the /\_license endpoint, Filebeat requires the default distribution of Elasticsearch. Please make the endpoint accessible to Filebeat so it can verify the license.: unauthorized access, could not connect to the xpack endpoint, verify your credentials**

or  
**Exiting: request checking for ILM availability failed: 401 Unauthorized: {"Message":"Your request: '/\_xpack' is not allowed."}**

I was reading that I need to use filebeat OSS. Is that why I get those errors and not be able to connect/send data to the ELK?

Cheers

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [October 30, 2020, 9:54am UTC](https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700/2 "2020-10-30T09:54:10Z")

</div>

Hi!

Most probably yes. Can you try with OSS?

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [October 30, 2020, 2:00pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700/3 "2020-10-30T14:00:38Z")

</div>

Hi Chris. yes I used the OSS version but same error.

To fix this for now I send all the logs from filebeat --\> logstash --\> Elk... and it's working

Cheers

---

<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:** [November 27, 2020, 4:00pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-service-and-filebeat/253700/4 "2020-11-27T16:00:44Z")

</div>

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