# Elastic-Agent - Non-zero metrics in the last 30s

**URL:** https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052
**Category:** Beats
**Tags:** elastic-stack-monitoring, beats-module
**Created:** [April 10, 2022, 9:39am UTC](https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052 "2022-04-10T09:39:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)
#### Post date: [April 10, 2022, 9:39am UTC](https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052/1 "2022-04-10T09:39:34Z")

</div>

Running 8.1.2, is there a way to disable the metrics logging of this within the Elastic-Agent ?

This without disabling "Collect Agent Logs"... I want the logs but not the metrics logging.

 ![Screenshot 2022-04-10 at 11.32.33](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58409a1a35d8ffce7d23c39ead6767fa3f5d6793.png)

You normally could do this within Beats, e.g. Metricbeat.yml

```auto
# If enabled, Metricbeat periodically logs its internal metrics that have changed
# in the last period. For each metric that changed, the delta from the value at
# the beginning of the period is logged. Also, the total values for
# all non-zero internal metrics are logged on shutdown. The default is true.
logging.metrics.enabled: false

```

Ideally to get rid of log pollution without having to filter out.

 ![Screenshot 2022-04-10 at 11.34.36](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f10e6f76bd3825c6013a498650725d6b386f4f63.png)

---

<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: [May 8, 2022, 11:39am UTC](https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052/2 "2022-05-08T11:39:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Janko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janko/32/26896_2.png) [@Janko](https://discuss.elastic.co/u/Janko)
#### Post date: [October 13, 2022, 11:42am UTC](https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052/3 "2022-10-13T11:42:27Z")

</div>



---

<div class="post-metadata">

### Author: ![JalehD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalehd/32/93814_2.png) [@JalehD](https://discuss.elastic.co/u/JalehD)
#### Post date: [October 13, 2022, 11:47am UTC](https://discuss.elastic.co/t/elastic-agent-non-zero-metrics-in-the-last-30s/302052/4 "2022-10-13T11:47:24Z")

</div>

Based on [Beats and Elastic Agent capabilities | Fleet and Elastic Agent Guide [8.4] | Elastic](https://www.elastic.co/guide/en/fleet/current/beats-agent-comparison.html) the logging configurations are supported by the agent so the settings can be used to turn these log lines off if that's what you'd like to do.

Please note that since Agent encompasses different integrations , these settings may or may not be applicable and I believe this is why it's not at the policy level but at the integration level.  
You can add them in the advanced configurations for the specific integration you are adding to the Policy and depending on the integration itself and if you use the available defaults you may need to look a bit under the hood to see the section for these type of settings.

I hope below 2 screenshots prove helpful.

 ![Screenshot 2022-10-13 at 12.36.46](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f8871f4fc696eb3d79a8785b22615210df53161e.png)  
 ![Screenshot 2022-10-13 at 12.29.43](https://us1.discourse-cdn.com/elastic/original/3X/9/6/9662c86f8bc821c54c39451ad4b848b30043764e.png)
