# Why always need to run first logstash conf file then put log file on specific folder

**URL:** <https://discuss.elastic.co/t/why-always-need-to-run-first-logstash-conf-file-then-put-log-file-on-specific-folder/66852>\
**Category:** Logstash\
**Created:** [November 22, 2016, 12:06pm UTC](https://discuss.elastic.co/t/why-always-need-to-run-first-logstash-conf-file-then-put-log-file-on-specific-folder/66852 "2016-11-22T12:06:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roshan](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@Roshan](https://discuss.elastic.co/u/Roshan)\
**Post date:** [November 22, 2016, 12:06pm UTC](https://discuss.elastic.co/t/why-always-need-to-run-first-logstash-conf-file-then-put-log-file-on-specific-folder/66852/1 "2016-11-22T12:06:30Z")

</div>

Hi,  
i am running logstash through pragmatically when first i putted file on specific folder then started running longstash file through command . then need to open that log file from specific folder do some operation and saved it , so logstash started running fine.

Can have alternate way to execute logstash file on log file which is already present in folder.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 22, 2016, 9:22pm UTC](https://discuss.elastic.co/t/why-always-need-to-run-first-logstash-conf-file-then-put-log-file-on-specific-folder/66852/2 "2016-11-22T21:22:52Z")

</div>

This is probably related to sincedb. Logstash thinks it has already processed a file, but when you open it and save it it gets a new inode number and therefore Logstash discovers it as a new file. The file input documentation explains this in greater detail and if you crank up Logstash's log level you get additional clues about what it's doing.

---

<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 20, 2016, 9:23pm UTC](https://discuss.elastic.co/t/why-always-need-to-run-first-logstash-conf-file-then-put-log-file-on-specific-folder/66852/3 "2016-12-20T21:23:08Z")

</div>

Closed on December 20, 2016, 9:23pm UTC

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