# Elasticapm.transport：flushing due to time since last flush

**URL:** <https://discuss.elastic.co/t/elasticapm-transport-flushing-due-to-time-since-last-flush/262805>\
**Category:** APM\
**Tags:** python\
**Created:** [February 1, 2021, 9:03am UTC](https://discuss.elastic.co/t/elasticapm-transport-flushing-due-to-time-since-last-flush/262805 "2021-02-01T09:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111395](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111395/32/76933_2.png) [@111395](https://discuss.elastic.co/u/111395)\
**Post date:** [February 1, 2021, 9:03am UTC](https://discuss.elastic.co/t/elasticapm-transport-flushing-due-to-time-since-last-flush/262805/1 "2021-02-01T09:03:47Z")

</div>

I see some logs on my client:

```auto
elasticapm.metrics: collecting metrics
elasticapm.transport: flushing due to time since last flush 10.858s > max_flush_time 10.857s
urlllib3.connectionpool: http://xxx:8200 POST /intake/v2/events size=0.44kb status=202
elasticapm.transport: flushing due to time since last flush 9.295s > max_flush_time 9.295s
elasticapm.transport: flushing due to time since last flush 10.568s > max_flush_time10.568s
...

```

Print these all the time。Even if I do not have any operations on the client。  
stay elasticapm.transport In the source code, I found the place where the log was generated  
But I don't know why this mistake happened。

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [February 1, 2021, 10:25am UTC](https://discuss.elastic.co/t/elasticapm-transport-flushing-due-to-time-since-last-flush/262805/2 "2021-02-01T10:25:29Z")

</div>

Hey @111395

The agent does collect some data even if your app doesn't do anything (e.g. system metrics like CPU and memory usage). That's what's going on here.

The log level of these messages is set to `DEBUG`, so I recommend to lower your log level to something like `INFO` or `WARNING` so your logs aren't spammed by these messages.

---

<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 22, 2021, 6:25am UTC](https://discuss.elastic.co/t/elasticapm-transport-flushing-due-to-time-since-last-flush/262805/3 "2021-02-22T06:25:39Z")

</div>

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