# Process same file multiple times

**URL:** <https://discuss.elastic.co/t/process-same-file-multiple-times/155238>\
**Category:** Logstash\
**Created:** [November 2, 2018, 9:11pm UTC](https://discuss.elastic.co/t/process-same-file-multiple-times/155238 "2018-11-02T21:11:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![telebh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telebh/32/42272_2.png) [@telebh](https://discuss.elastic.co/u/telebh)\
**Post date:** [November 2, 2018, 9:11pm UTC](https://discuss.elastic.co/t/process-same-file-multiple-times/155238/1 "2018-11-02T21:11:30Z")

</div>

Hi there,

I am using logsatsh to parse our dataloading logs, which are text files but contains dynamic contents (not syslog nor apache), though for debugging i need to test the config settings i had to read this file (i.e. 201845.txt) few times, but log stash generates output file if i process file "201845.txt" for the first time, if i changed the config file and run again for same exact "201845.txt", there is not output file generated!!!! does logstash cache 201845 somewhere that does not allow to run config file against it few times?

---

<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:** [November 3, 2018, 9:32am UTC](https://discuss.elastic.co/t/process-same-file-multiple-times/155238/2 "2018-11-03T09:32:53Z")

</div>

It's due to [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#\_tracking\_of\_current\_position\_in\_watched\_files](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_tracking_of_current_position_in_watched_files)

Look at `sincedb` settings and other threads on that topic 🙂

---

<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:** [December 1, 2018, 9:33am UTC](https://discuss.elastic.co/t/process-same-file-multiple-times/155238/3 "2018-12-01T09:33:01Z")

</div>

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