# Filebeat AWS module ignore older

**URL:** <https://discuss.elastic.co/t/filebeat-aws-module-ignore-older/321391>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [December 16, 2022, 9:30am UTC](https://discuss.elastic.co/t/filebeat-aws-module-ignore-older/321391 "2022-12-16T09:30:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![infernalz2](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@infernalz2](https://discuss.elastic.co/u/infernalz2)\
**Post date:** [December 16, 2022, 9:30am UTC](https://discuss.elastic.co/t/filebeat-aws-module-ignore-older/321391/1 "2022-12-16T09:30:39Z")

</div>

Hello,

I am using Filebeat 7.16.2 with AWS module to download VPC flow logs to elastics from S3. Is there a way to make ignore older files/log. Everytime filebeat gets restarted it writes to elastic everything from the bucket. The company policy we have is to have the log for 30 days in the bucket and it becomes a mess.

---

<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:** [January 13, 2023, 11:31am UTC](https://discuss.elastic.co/t/filebeat-aws-module-ignore-older/321391/2 "2023-01-13T11:31:00Z")

</div>

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