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

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

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:

# -------------------------------------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:

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.

# Enable security features
xpack.security.enabled:false

it connect:

root@debian:# filebeat setup
Loaded Ingest pipelines

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


Nothing can be seen.

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