i configured to access it from the browser with HTTPS and when i configured filebeat i let kibana by default with http
# =================================== Kibana ===================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: "192.168.37.2:5601"
# Kibana Space ID
# ID of the Kibana Space into which the dashboards should be loaded. By default,
# the Default Space will be used.
#space.id:
and when i try this cmd "filebeat setup -e" it show me this error :
Loading dashboards (Kibana must be running and reachable)
{"log.level":"info","@timestamp":"2022-07-25T12:29:00.713Z","log.logger":"kibana", "log.origin":{"file.name":"kibana/client.go","file.line":179},"message":"Kibana ur l: http://192.168.37.2:5601","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-07-25T12:29:00.716Z","log.origin":{"file.n ame":"instance/beat.go","file.line":1051},"message":"Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://192.168.37.2:56 01/api/status fails: fail to execute the HTTP GET request: Get \"http://192.168.37 .2:5601/api/status\": EOF. Response: ","service.name":"filebeat","ecs.version":"1. 6.0"}