Elasticapm.transport:flushing due to time since last flush

I see some logs on my client:

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。

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.

1 Like

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