# Logstash not picking the file after placing in the input path

**URL:** <https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703>\
**Category:** Logstash\
**Created:** [May 12, 2019, 3:51pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703 "2019-05-12T15:51:35Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![syed\_faheem\_Hussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syed_faheem_hussain/32/46047_2.png) [@syed\_faheem\_Hussain](https://discuss.elastic.co/u/syed_faheem_Hussain)\
**Post date:** [May 18, 2019, 6:28pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/41 "2019-05-18T18:28:28Z")

</div>

Any help on this please

---

<div class="post-metadata">

**Author:** ![syed\_faheem\_Hussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syed_faheem_hussain/32/46047_2.png) [@syed\_faheem\_Hussain](https://discuss.elastic.co/u/syed_faheem_Hussain)\
**Post date:** [May 19, 2019, 6:42pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/42 "2019-05-19T18:42:31Z")

</div>

Any update on this please

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 19, 2019, 10:00pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/43 "2019-05-19T22:00:39Z")

</div>

Why can't you use the \_delete\_by\_query that \_elasticforme suggested?

---

<div class="post-metadata">

**Author:** ![Jasonespo](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)\
**Post date:** [May 21, 2019, 9:11am UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/44 "2019-05-21T09:11:37Z")

</div>

> [@syed\_faheem\_Hussain](#):
>
> Any update on this please

Syed remember this isn't an SLA.. People here aren't required to assist you...

You can use the delete\_by\_query that @elasticforme suggested - Run it as a scheduled task.

You should also create your indexes so they roll over daily. E.g each day is split into a different index. This allows for much easier index management and will allow you delete your indexes older than 2 days.

---

<div class="post-metadata">

**Author:** ![pmarques](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmarques/32/42536_2.png) [@pmarques](https://discuss.elastic.co/u/pmarques)\
**Post date:** [May 21, 2019, 6:50pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/45 "2019-05-21T18:50:55Z")

</div>

Hello @syed_faheem_Hussain,

Did you check the directory/file permission?

Cheers,  
Paulo

---

<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 18, 2019, 6:51pm UTC](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703/46 "2019-06-18T18:51:02Z")

</div>

Closed on June 18, 2019, 6:51pm UTC

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

[Previous page](https://discuss.elastic.co/t/logstash-not-picking-the-file-after-placing-in-the-input-path/180703.md?page=2)
