# Metricbeat postgresql (with statement on) module generating too many docs

**URL:** <https://discuss.elastic.co/t/metricbeat-postgresql-with-statement-on-module-generating-too-many-docs/235095>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 31, 2020, 9:48pm UTC](https://discuss.elastic.co/t/metricbeat-postgresql-with-statement-on-module-generating-too-many-docs/235095 "2020-05-31T21:48:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Jimenez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_jimenez/32/34722_2.png) [@Rodrigo\_Jimenez](https://discuss.elastic.co/u/Rodrigo_Jimenez)\
**Post date:** [May 31, 2020, 9:48pm UTC](https://discuss.elastic.co/t/metricbeat-postgresql-with-statement-on-module-generating-too-many-docs/235095/1 "2020-05-31T21:48:03Z")

</div>

Hi!, I'm trying the statement feature of postgres module in metricbeat (metricbeat v.7.7)  
I generates data all right, but it filled my cluster's capacity overnight.  
I'm getting more than 5000 docs/min and I don't know if this is because the engine is over heavy use. I set the period variable to 15 mins in the postgresql.yml module config file but I still get flooded. Is this expected ?

---

<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 28, 2020, 9:48pm UTC](https://discuss.elastic.co/t/metricbeat-postgresql-with-statement-on-module-generating-too-many-docs/235095/2 "2020-06-28T21:48:04Z")

</div>

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