# APM flush logging

**URL:** <https://discuss.elastic.co/t/apm-flush-logging/181786>\
**Category:** APM\
**Tags:** python\
**Created:** [May 20, 2019, 10:20am UTC](https://discuss.elastic.co/t/apm-flush-logging/181786 "2019-05-20T10:20:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesNotJamez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesnotjamez/32/45736_2.png) [@JamesNotJamez](https://discuss.elastic.co/u/JamesNotJamez)\
**Post date:** [May 20, 2019, 10:20am UTC](https://discuss.elastic.co/t/apm-flush-logging/181786/1 "2019-05-20T10:20:42Z")

</div>

Hi,

I'm running the Flask APM agent and when added to my script it starts filling my logs with the following every 5-10 seconds

```auto
flushing due to time since last flush 9.060s > max_flush_time 9.060s

```

Which is making it harder to track between requests.

Is there a way to disable this log without going into the file and removing it manually?

Thanks

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [May 22, 2019, 2:47am UTC](https://discuss.elastic.co/t/apm-flush-logging/181786/2 "2019-05-22T02:47:12Z")

</div>

> [@JamesNotJamez](#):
>
> Is there a way to disable this log without going into the file and removing it manually?

How are you initialising the agent? That message will only be logged at `DEBUG` level logging. You probably don't need to log this level of detail unless you're actively investigating an agent issue.

You can specify the log level in the `elasticapm.contrib.flask.ElasticAPM` call. See [Flask support | APM Python Agent Reference [6.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/python/current/flask-support.html#flask-logging) for details.

---

<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:** [June 11, 2019, 10:47pm UTC](https://discuss.elastic.co/t/apm-flush-logging/181786/3 "2019-06-11T22:47:19Z")

</div>

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