# Logstash Not parsing the file when running the again on the same file

**URL:** <https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864>\
**Category:** Logstash\
**Created:** [January 7, 2017, 8:20pm UTC](https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864 "2017-01-07T20:20:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akul\_Kapoor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akul_kapoor/32/14385_2.png) [@Akul\_Kapoor](https://discuss.elastic.co/u/Akul_Kapoor)\
**Post date:** [January 7, 2017, 8:20pm UTC](https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864/1 "2017-01-07T20:20:03Z")

</div>

I ran logstash successfully using my log and config file. After that I stopped it and ran again using the same config file and log file, the logstash does not give any output.  
Can someone explain why logstash is not running the second after running perfectly for the first time.  
Note: I am struck because i do not get any error. Following is what i get, when I run logstash the second time:

**[2017-01-07T15:01:32,029][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/elk/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-4.0.4-java/vendor/GeoLite2-City.mmdb"}**  
**[2017-01-07T15:01:32,076][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/elk/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-4.0.4-java/vendor/GeoLite2-City.mmdb"}**  
**[2017-01-07T15:01:32,091][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>1, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>125}**  
**[2017-01-07T15:01:32,099][INFO][logstash.pipeline] Pipeline main started**  
**[2017-01-07T15:01:32,316][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}**

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [January 7, 2017, 8:34pm UTC](https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864/2 "2017-01-07T20:34:58Z")

</div>

yes logstash remembers where it left off .

I your testing set the file parameter for sincedb\_path to /dev/null so it does not save the position. Then when you have what you like then remove this parameter

---

<div class="post-metadata">

**Author:** ![Akul\_Kapoor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akul_kapoor/32/14385_2.png) [@Akul\_Kapoor](https://discuss.elastic.co/u/Akul_Kapoor)\
**Post date:** [January 7, 2017, 8:54pm UTC](https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864/3 "2017-01-07T20:54:17Z")

</div>

thank you so much. that solved my problem. 🙂

---

<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:** [February 4, 2017, 8:54pm UTC](https://discuss.elastic.co/t/logstash-not-parsing-the-file-when-running-the-again-on-the-same-file/70864/4 "2017-02-04T20:54:20Z")

</div>

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