# Reading from files to a directory to which files are being added continuously

**URL:** <https://discuss.elastic.co/t/reading-from-files-to-a-directory-to-which-files-are-being-added-continuously/56949>\
**Category:** Logstash\
**Created:** [August 2, 2016, 4:59am UTC](https://discuss.elastic.co/t/reading-from-files-to-a-directory-to-which-files-are-being-added-continuously/56949 "2016-08-02T04:59:37Z")\
**Posts on this page:** 3\
**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 2, 2016, 4:59am UTC](https://discuss.elastic.co/t/reading-from-files-to-a-directory-to-which-files-are-being-added-continuously/56949/1 "2016-08-02T04:59:37Z")

</div>

I have a small question.  
suppose if we give below in logstash configuration file,

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:38am UTC](https://discuss.elastic.co/t/reading-from-files-to-a-directory-to-which-files-are-being-added-continuously/56949/2 "2016-08-02T10:38:55Z")

</div>

Please don't create multiple threads on the same question - [Regarding reading files from a directory to which new files are being added continuously after processing all of previous files](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)

---

<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:38am UTC](https://discuss.elastic.co/t/reading-from-files-to-a-directory-to-which-files-are-being-added-continuously/56949/3 "2016-08-02T10:38:58Z")

</div>

Closed on August 2, 2016, 10:38am UTC


