# File input not pulling in data

**URL:** <https://discuss.elastic.co/t/file-input-not-pulling-in-data/239822>\
**Category:** Logstash\
**Created:** [July 3, 2020, 2:38pm UTC](https://discuss.elastic.co/t/file-input-not-pulling-in-data/239822 "2020-07-03T14:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlm](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@karlm](https://discuss.elastic.co/u/karlm)\
**Post date:** [July 3, 2020, 2:38pm UTC](https://discuss.elastic.co/t/file-input-not-pulling-in-data/239822/1 "2020-07-03T14:38:40Z")

</div>

So i Have a daily log file the this with 3 sections time / priority / message like this below

```
03-Jul-2020 10:24:00.773 +01:00 [INF] User profile is available. this C:/ as key repository and Windows API to encrypt keys at rest.
03-Jul-2020 10:24:01.221 +01:00 [WRN] Overriding address(es) 'http://localhost:5001'. Binding to endpoints defined in UseKestrel() instead.
03-Jul-2020 10:24:02.914 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost:5001/api/v1/events

```

then i have a logstash config file

```
input {    
    file {
        start_position => "beginning"
        mode => "read"
        sincedb_path => "sincedb.log"        
        path => ["C:\Logs\*.txt"]
    }
}
filter {
      grok {
        match => { "message" => "%{SYSLOGBASE} %{WORD:priority} %{WORD:description}" }
      }
    }
output {
    stdout { codec => rubydebug }    
    elasticsearch {      
        hosts => ["localhost:9200"]
        index => "logs-%{+xxxx.ww}"
    }   
}

```

but nothing is happening i think the grok is wrong as well but even without the filter its not putting data in to the log index

any ideas or help? Thanks in advance

---

<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:** [July 3, 2020, 3:43pm UTC](https://discuss.elastic.co/t/file-input-not-pulling-in-data/239822/2 "2020-07-03T15:43:05Z")

</div>

> [@karlm](#):
>
> `path => ["C:\Logs\*.txt"]`

Do not use backslash in the path option of a file input. It is treated as an escape. 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:** [July 31, 2020, 3:43pm UTC](https://discuss.elastic.co/t/file-input-not-pulling-in-data/239822/3 "2020-07-31T15:43:05Z")

</div>

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