# Rottating policy Elastic Agent logs

**URL:** https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880
**Category:** Beats
**Tags:** elastic-agent
**Created:** [January 10, 2022, 11:18am UTC](https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880 "2022-01-10T11:18:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![marti1](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@marti1](https://discuss.elastic.co/u/marti1)
#### Post date: [January 10, 2022, 11:18am UTC](https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880/1 "2022-01-10T11:18:08Z")

</div>

Hi,

Elastic Agent creates a log for each integration (Ex: /Library/Elastic/Agent/data/elastic-agent-08e204/logs/default/metricbeat-json.log). Is it possible to define rotating policy (reaching specific size or defining specific log level) or just disable this functionality?

Right now, my logs are over 20GB on each monitored host.

Thanks

---

<div class="post-metadata">

### Author: ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)
#### Post date: [January 10, 2022, 11:10pm UTC](https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880/2 "2022-01-10T23:10:23Z")

</div>

U can disable logging and metrics from the policy mgmt page

---

<div class="post-metadata">

### Author: ![marti1](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@marti1](https://discuss.elastic.co/u/marti1)
#### Post date: [January 11, 2022, 7:24am UTC](https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880/3 "2022-01-11T07:24:05Z")

</div>

You can disable receiving logs and metrics on your cluster, but I want to stop logging on the local machine.

---

<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: [February 8, 2022, 7:24am UTC](https://discuss.elastic.co/t/rottating-policy-elastic-agent-logs/293880/4 "2022-02-08T07:24:46Z")

</div>

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