Agents in Fleet Healthy, but no logs

Hello,

I have a couple agents managed by Fleet. They say healthy in Fleet and when I run elastic-agent -health on the client, but they have no logs in Discover. I also have a couple agents running standalone and they do have logs showing up in Discover.

{"log.level":"error","@timestamp":"2022-05-06T11:57:17.311-0700","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/client_worker.go","file.line":150},"message":"Failed to connect to backoff(elasticsearch(http://10.20.30.115:9200)): Get \"http://10.20.30.115:9200\": EOF","service.name":"metricbeat","ecs.version":"1.6.0"}

I think it might be the http instead of https but I'm not sure where its pulling that setting from. The standalone agents that work are using https for the output to Elasticsearch.

Took a while but I figured it out.

Bottom of the kibana.yml, changed the hosts: ['http://10.10.10.10:9200'] to hosts: ['https://10.10.10.10:9200'].

Everything seems to be working now