# There are about 800000 log files in my environment, and now logstash is stuck after starting. Is there any solution? You can collect the latest files

**URL:** <https://discuss.elastic.co/t/there-are-about-800000-log-files-in-my-environment-and-now-logstash-is-stuck-after-starting-is-there-any-solution-you-can-collect-the-latest-files/363963>\
**Category:** Logstash\
**Created:** [July 29, 2024, 10:08am UTC](https://discuss.elastic.co/t/there-are-about-800000-log-files-in-my-environment-and-now-logstash-is-stuck-after-starting-is-there-any-solution-you-can-collect-the-latest-files/363963 "2024-07-29T10:08:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis-cmyk-a11y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis-cmyk-a11y/32/136357_2.png) [@Alexis-cmyk-a11y](https://discuss.elastic.co/u/Alexis-cmyk-a11y)\
**Post date:** [July 29, 2024, 10:08am UTC](https://discuss.elastic.co/t/there-are-about-800000-log-files-in-my-environment-and-now-logstash-is-stuck-after-starting-is-there-any-solution-you-can-collect-the-latest-files/363963/1 "2024-07-29T10:08:27Z")

</div>

There are about 800000 log files in my environment, and now logstash is stuck after starting. Is there any solution? You can collect the latest files
