# Agent 8.12.0 Standalone ignoring agent.logging settings

**URL:** <https://discuss.elastic.co/t/agent-8-12-0-standalone-ignoring-agent-logging-settings/352441>\
**Category:** Elastic Agent\
**Created:** [February 2, 2024, 6:33pm UTC](https://discuss.elastic.co/t/agent-8-12-0-standalone-ignoring-agent-logging-settings/352441 "2024-02-02T18:33:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgotechlock](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mgotechlock](https://discuss.elastic.co/u/mgotechlock)\
**Post date:** [February 2, 2024, 6:33pm UTC](https://discuss.elastic.co/t/agent-8-12-0-standalone-ignoring-agent-logging-settings/352441/1 "2024-02-02T18:33:23Z")

</div>

I have these settings

```auto
logging:
  level: error
    files:
      name: elastic-agent
      keepfiles: 7
    metrics:
      enabled: false

```

logging.level:error is not working. I am still seeing info and warning level logs.  
logging.keepfiles is not working, I actually had set it to 2 and restarted agent a bunch of times and the old files never went away.  
logging.metrics.enabled:false is not working. Still getting "message":"Non-zero metrics in the last 30s" for both auditbeat and filebeat in the logs.

Is this a known or new bug or am I doing something wrong?  
OS: Windows 10  
Agent 8.12.0 Standalone.

---

<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:** [March 1, 2024, 6:34pm UTC](https://discuss.elastic.co/t/agent-8-12-0-standalone-ignoring-agent-logging-settings/352441/2 "2024-03-01T18:34:16Z")

</div>

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