# Regarding reading files from a directory to which new files are being added continuously after processing all of previous files

**URL:** <https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861>\
**Category:** Logstash\
**Created:** [August 1, 2016, 7:16am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861 "2016-08-01T07:16:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yesyesdhar](https://avatars.discourse-cdn.com/v4/letter/y/ecccb3/32.png) [@yesyesdhar](https://discuss.elastic.co/u/yesyesdhar)\
**Post date:** [August 1, 2016, 7:16am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/1 "2016-08-01T07:16:53Z")

</div>

input {  
file {  
path =\> "/Users/shashi/CSVFiles/Core2/\*.txt"

I know above can be used to read input from multiple files in Core2 directory of type txt.  
My requirement is that multiple new files are being continuously added to this directory when available, for example every 5 minutes. what should i do to read these new files that arrived after logstash processed all of the previous files

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2016, 10:17am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/2 "2016-08-02T10:17:36Z")

</div>

It should pick them up automatically.

---

<div class="post-metadata">

**Author:** ![yesyesdhar](https://avatars.discourse-cdn.com/v4/letter/y/ecccb3/32.png) [@yesyesdhar](https://discuss.elastic.co/u/yesyesdhar)\
**Post date:** [August 2, 2016, 10:44am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/3 "2016-08-02T10:44:23Z")

</div>

Hi Mark,

Sorry for creating another thread for same question.Actually, i mistakenly gave Reading files to a directory instead of Reading files from a directory in the first thread. I corrected it in the second thread.  
Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2016, 10:46am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/4 "2016-08-02T10:46:20Z")

</div>

Please just edit the existing thread rather than making new ones.

---

<div class="post-metadata">

**Author:** ![yesyesdhar](https://avatars.discourse-cdn.com/v4/letter/y/ecccb3/32.png) [@yesyesdhar](https://discuss.elastic.co/u/yesyesdhar)\
**Post date:** [August 2, 2016, 10:46am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/5 "2016-08-02T10:46:20Z")

</div>

Actually the Topic Subject name had the error i mentioned in previous post.

---

<div class="post-metadata">

**Author:** ![yesyesdhar](https://avatars.discourse-cdn.com/v4/letter/y/ecccb3/32.png) [@yesyesdhar](https://discuss.elastic.co/u/yesyesdhar)\
**Post date:** [August 2, 2016, 11:14am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/6 "2016-08-02T11:14:00Z")

</div>

Hi Mark,

I couldnt figure out how to edit the text.

Thanks

---

<div class="post-metadata">

**Author:** ![yesyesdhar](https://avatars.discourse-cdn.com/v4/letter/y/ecccb3/32.png) [@yesyesdhar](https://discuss.elastic.co/u/yesyesdhar)\
**Post date:** [August 2, 2016, 11:17am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/7 "2016-08-02T11:17:02Z")

</div>

sorry i didnt notice the edit option thats show like icons below the post.

Thanks

---

<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:** [July 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/regarding-reading-files-from-a-directory-to-which-new-files-are-being-added-continuously-after-processing-all-of-previous-files/56861/8 "2017-07-06T04:45:22Z")

</div>

Closed on July 6, 2017, 4:45am UTC


