# How to configure Elasticsearch outputs and credentials when using Elastic Agent?

**URL:** <https://discuss.elastic.co/t/how-to-configure-elasticsearch-outputs-and-credentials-when-using-elastic-agent/294379>\
**Category:** Elastic Observability\
**Created:** [January 14, 2022, 8:17am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-outputs-and-credentials-when-using-elastic-agent/294379 "2022-01-14T08:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aqiank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqiank/32/39723_2.png) [@aqiank](https://discuss.elastic.co/u/aqiank)\
**Post date:** [January 14, 2022, 8:17am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-outputs-and-credentials-when-using-elastic-agent/294379/1 "2022-01-14T08:17:29Z")

</div>

Hi, I managed to set up Fleet-managed Elastic Agent on a host. I installed the System integration so the Elastic Agent gather logs and metrics. The agent is healthy according to the Fleet's Agents page on Kibana.

However, it seems like I must configure the Filebeat and Metricbeat YML files under the Elastic Agent directory for it to be able to send logs and metrics to the cluster. I had to set `hosts`, `username`, and `password` under the `output.elasticsearch` section and restart the Elastic Agent for the cluster to receive data. I was under the impression that there would be a place to configure it on Kibana but I couldn't find it.

Could someone explain what is missing? Thanks!

---

<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 4, 2022, 8:33am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-outputs-and-credentials-when-using-elastic-agent/294379/2 "2022-11-04T08:33:47Z")

</div>


