# Logstash stopped running after first run

**URL:** https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782
**Category:** Logstash
**Created:** [June 13, 2018, 7:19pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782 "2018-06-13T19:19:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)
#### Post date: [June 13, 2018, 7:19pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/1 "2018-06-13T19:19:11Z")

</div>

The data loaded the first time, not sure what happened.

I get this notification:

> [2018-06-13T14:28:34,944][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

Then it just sits and waits. This is very confusing.  
Sometimes I need the type, sometimes I don't.

Here is my config:  
input {

```
file {
path => ["C:\Users\me\Desktop\2018-AS-Tracking-Visit.csv"]
start_position => "beginning"
}
}

output {

elasticsearch {
hosts => ["xxxxxxxxxxxxxxxxxxxxxxxxxx:9200"]
index => "tracking"
user=>"xxxxxx"
password=>"xxxxxxxxxxxxxxxxxxx"

 
}
stdout { codec => rubydebug }
}

```

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 13, 2018, 7:51pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/2 "2018-06-13T19:51:45Z")

</div>

A file input records how much of the file it has read in the sincedb. Once it has read the file once the start\_position is ignored and if logstash is restarted it will start from the position in the sincedb. It will sit and wait for new data to be appended to the file. So it sounds to me like this is working as expected.

If you want to re-read the whole file every time then set the sincedb\_path to "nul".

---

<div class="post-metadata">

### Author: ![CDR](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CDR](https://discuss.elastic.co/u/CDR)
#### Post date: [June 13, 2018, 7:59pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/3 "2018-06-13T19:59:39Z")

</div>

Is there a file called null you can set the sincedb\_path to on a Windows machine? I know that for my Linux machines I write to /dev/null, but wasn't sure if there was one or WIndows.

---

<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: [June 13, 2018, 8:13pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/4 "2018-06-13T20:13:06Z")

</div>

It's called "nul" (yes, not "null").

---

<div class="post-metadata">

### Author: ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)
#### Post date: [June 13, 2018, 8:37pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/5 "2018-06-13T20:37:59Z")

</div>

Thanks!

Forgot all about that!

---

<div class="post-metadata">

### Author: ![CDR](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CDR](https://discuss.elastic.co/u/CDR)
#### Post date: [June 13, 2018, 8:56pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/6 "2018-06-13T20:56:41Z")

</div>

Do you simply send set the path to just "nul"?

---

<div class="post-metadata">

### Author: ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)
#### Post date: [June 13, 2018, 11:46pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/7 "2018-06-13T23:46:04Z")

</div>

sincedb\_path =\> "nul"

---

<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: [July 11, 2018, 11:46pm UTC](https://discuss.elastic.co/t/logstash-stopped-running-after-first-run/135782/8 "2018-07-11T23:46:09Z")

</div>

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