# Logstash startup completed nothing proceeds after this command in logstash

**URL:** https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715
**Category:** Logstash
**Created:** [November 22, 2017, 1:00pm UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715 "2017-11-22T13:00:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ayushbij27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushbij27/32/24314_2.png) [@ayushbij27](https://discuss.elastic.co/u/ayushbij27)
#### Post date: [November 22, 2017, 1:00pm UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/1 "2017-11-22T13:00:20Z")

</div>

I am trying to index the data from logs file to elastisearch but I was unable to do so because after the Logstash Startup completed message appears nothing actually happens. So I changed conf file to

input {  
file {  
path =\> "/home/ayush/Desktop/logstash-tutorial-dataset"  
start\_position =\> "beginning"  
}  
}  
output {  
stdout {}

}

So the data of logstash-tutorial-dataset should gets printed on terminal but it isn't. Please help me with this.

---

<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, 2017, 2:07pm UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/2 "2017-11-22T14:07:38Z")

</div>

What happens if you add `sincedb_path => "/dev/null"` to your file input?

---

<div class="post-metadata">

### Author: ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)
#### Post date: [November 22, 2017, 2:52pm UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/3 "2017-11-22T14:52:37Z")

</div>

Or read these docs: [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)

---

<div class="post-metadata">

### Author: ![ayushbij27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushbij27/32/24314_2.png) [@ayushbij27](https://discuss.elastic.co/u/ayushbij27)
#### Post date: [November 23, 2017, 6:33am UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/4 "2017-11-23T06:33:17Z")

</div>

Thanks for the reply, it solved my problem. But I have couple of questions on this.

1. How does adding **sincedb\_path =\> "/dev/null"** solved my problem. What it actually did?
2. When I am changing my **conf** file like this  
input {  
file {  
path =\> "/home/ayush/Desktop/logstash-tutorial-dataset"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}  
output {  
file {  
path =\> "/home/ayush/Desktop/ltd.txt"  
}  
stdout{}

}  
I am able to get the value printed through stdout on terminal as well as the .txt file gets created but **no data** is present in the ltd.txt file .How can I solve this?

---

<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 23, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/5 "2017-11-23T06:36:24Z")

</div>

> How does adding sincedb\_path =\> "/dev/null" solved my problem. What it actually did?

It tells Logstash to read the sincedb information from /dev/null, basically an empty file, thereby not paying attention to the old sincedb file which contained the current position in the file. The `start_position` option only matters for new and previously unseen files. If Logstash has processed a file it won't process it again regardless of the `start_position` option.

---

<div class="post-metadata">

### Author: ![ayushbij27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushbij27/32/24314_2.png) [@ayushbij27](https://discuss.elastic.co/u/ayushbij27)
#### Post date: [November 23, 2017, 9:50am UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/6 "2017-11-23T09:50:24Z")

</div>

Can you please help me with the sceond question as well?

---

<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 21, 2017, 9:50am UTC](https://discuss.elastic.co/t/logstash-startup-completed-nothing-proceeds-after-this-command-in-logstash/108715/7 "2017-12-21T09:50:39Z")

</div>

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