# Logstash input not ingesting distinct file

**URL:** <https://discuss.elastic.co/t/logstash-input-not-ingesting-distinct-file/218953>\
**Category:** Logstash\
**Created:** [February 12, 2020, 11:03am UTC](https://discuss.elastic.co/t/logstash-input-not-ingesting-distinct-file/218953 "2020-02-12T11:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![romainfoulono](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@romainfoulono](https://discuss.elastic.co/u/romainfoulono)\
**Post date:** [February 12, 2020, 11:03am UTC](https://discuss.elastic.co/t/logstash-input-not-ingesting-distinct-file/218953/1 "2020-02-12T11:03:00Z")

</div>

Hello everyone

I would like to ingest text and csv files using Logstash to send them into Elasticsearch. The problem is that it's not working and Logstash does not indicate any errors.  
The index is not created, there's nothing in the log.  
I have unchecked the read-only on folder containing files I want to ingest.  
I have added to logstash config the parameters "start\_position" and "sincedb\_path", it's still not working.

I have created this configuration for logstash :

```auto
 input {
     file {
          path => "C:\logs\*.txt"
          type => "logs"
          start_position => "beginning"
          sincedb_path => "C:\logs\null"
     }
}
output {
     elasticsearch {
          hosts => ["localhost:9200"]
          index => "logtest"
     }
}

```

About versions, I use Elasticsearch 7.5.1, logstash 7.5.1 and kibana 7.5.1.

Thankyou for your help

---

<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:** [February 12, 2020, 2:53pm UTC](https://discuss.elastic.co/t/logstash-input-not-ingesting-distinct-file/218953/2 "2020-02-12T14:53:32Z")

</div>

> [@romainfoulono](#):
>
> path =\> "C:\logs\*.txt"

Do not use backslash in the path option of a file input. Use forward slash.

---

<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:** [March 11, 2020, 2:53pm UTC](https://discuss.elastic.co/t/logstash-input-not-ingesting-distinct-file/218953/3 "2020-03-11T14:53:41Z")

</div>

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