# Windows logstash setting issue!

**URL:** <https://discuss.elastic.co/t/windows-logstash-setting-issue/175784>\
**Category:** Logstash\
**Created:** [April 8, 2019, 8:01am UTC](https://discuss.elastic.co/t/windows-logstash-setting-issue/175784 "2019-04-08T08:01:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inandi/32/40801_2.png) [@inandi](https://discuss.elastic.co/u/inandi)\
**Post date:** [April 8, 2019, 8:01am UTC](https://discuss.elastic.co/t/windows-logstash-setting-issue/175784/1 "2019-04-08T08:01:28Z")

</div>

I have tried this code. my template is creating properly but index are not generating from the file. this is logstash.conf file. i am guessing it is 'sincedb' issue but I am confused. **OS : windows 10, ELK version : 6.5.4**

```
input {
 file {
    path => "C:\elk\logstash-6.5.4\logstash-6.5.4\config\review_data.json"
    start_position => "beginning"
    sincedb_path => "null"
    codec => "json"
  }
}

output {
  stdout { codec => rubydebug }
  elasticsearch {
      hosts => ["http://localhost:9200/"] 
      index => "location_test"          
      template =>"C:\elk\logstash-6.5.4\logstash-6.5.4\config\template.json"
      template_name=>"datareview"
      template_overwrite => true
    }
}
```

---

<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:** [April 8, 2019, 10:44am UTC](https://discuss.elastic.co/t/windows-logstash-setting-issue/175784/2 "2019-04-08T10:44:37Z")

</div>

On Windows, use forward-slash in the path option for the file input, and the sincedb\_path should be "NUL", not "null".

---

<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:** [May 6, 2019, 10:44am UTC](https://discuss.elastic.co/t/windows-logstash-setting-issue/175784/3 "2019-05-06T10:44:43Z")

</div>

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