# Agent logs and metrics

**URL:** <https://discuss.elastic.co/t/agent-logs-and-metrics/369373>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [October 24, 2024, 3:34pm UTC](https://discuss.elastic.co/t/agent-logs-and-metrics/369373 "2024-10-24T15:34:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [October 24, 2024, 3:34pm UTC](https://discuss.elastic.co/t/agent-logs-and-metrics/369373/1 "2024-10-24T15:34:39Z")

</div>

In Fleet (cloud, 8.15.3) agent policy settings has options  
. Collect agent logs  
. Collect agent metrics

There is also the Elastic Agent integration, which seems to do the same thing.

What is the difference? Which to use? Does using both send duplicate data to the cluster?

Thanks

---

<div class="post-metadata">

**Author:** ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)\
**Post date:** [December 2, 2024, 9:06am UTC](https://discuss.elastic.co/t/agent-logs-and-metrics/369373/2 "2024-12-02T09:06:56Z")

</div>

Hi, it is recommended to use the collect logs/metrics options on the agent policy: [Monitor Elastic Agents | Fleet and Elastic Agent Guide [8.16] | Elastic](https://www.elastic.co/guide/en/fleet/current/monitor-elastic-agent.html#change-agent-monitoring)  
It is correct that the Elastic Agent integration does the same thing, having them both won't result in duplicate data, I think.
