# Filebeat can not connect to elasticsearch and kibana can not see the data

**URL:** <https://discuss.elastic.co/t/filebeat-can-not-connect-to-elasticsearch-and-kibana-can-not-see-the-data/318975>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [November 15, 2022, 3:40pm UTC](https://discuss.elastic.co/t/filebeat-can-not-connect-to-elasticsearch-and-kibana-can-not-see-the-data/318975 "2022-11-15T15:40:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuxy](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@liuxy](https://discuss.elastic.co/u/liuxy)\
**Post date:** [November 15, 2022, 3:40pm UTC](https://discuss.elastic.co/t/filebeat-can-not-connect-to-elasticsearch-and-kibana-can-not-see-the-data/318975/1 "2022-11-15T15:40:57Z")

</div>

Hello!  
I installed elasticsearch and kibana using docker on the server and filebeat on my pc. But when my filebeat tries to setup（filebeat setup）, it shows

```auto
Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://172.22.105.144:9200: Get "http://172.22.105.144:9200": EOF

```

and my filebeat.yml is:

```auto
# -------------------------------------Elasticsearch Output --------------------------------------
output.elasticsearch:
     host: ["172.22.105.144:9200"]
    # protoctl: "https"
    #api_key : "id:api_key"
    username: "elastic"
    password: “mypassword"
    ssl.ca_trusted_fingerprint: " 8aa200d4137cdcdc8ebae7bc549aa7dd969b9b15d4ef3bb2bd9f48f41697480f"
setup.kibana:
    host: "172.22.105.144:5601"

```

when i try to curl:

```auto
root@debian:# curl - v http://172.22.105.144:9200/
curl:(52) Empty reply from server

```

But after I changed the value of xpack.security.enable in elasticsearch.yml in docker to false, it does work.

```auto
# Enable security features
xpack.security.enabled:false

```

it connect:

```auto
root@debian:# filebeat setup
Loaded Ingest pipelines

```

For why?  
However my kibana still can't see any data.My kinan status is green.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/5565930c4f6bf80164225ad7a08fa0ab25c2348a.png)  
Nothing can be seen.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cbfc8b508be4604de290653eb9d27c65899ceaff.png)

---

<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:** [December 13, 2022, 5:41pm UTC](https://discuss.elastic.co/t/filebeat-can-not-connect-to-elasticsearch-and-kibana-can-not-see-the-data/318975/2 "2022-12-13T17:41:46Z")

</div>

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