# Logstash 7x not reading from log file, same working for 6x versions

**URL:** <https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252>\
**Category:** Logstash\
**Created:** [September 26, 2019, 2:15pm UTC](https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252 "2019-09-26T14:15:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya127](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aditya127](https://discuss.elastic.co/u/aditya127)\
**Post date:** [September 26, 2019, 2:15pm UTC](https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252/1 "2019-09-26T14:15:07Z")

</div>

Here is my conf file details :

input {  
file {

path =\> ["C:\allLogs.log"]

}  
}

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "u\_logs"  
}  
stdout { codec =\> rubydebug }  
}

It works for 6.2.4 version, and data gets indexed into elasticsearch  
but not working for any 7x versions.

It also doesn't even validate whether file exist in the specified directory.

---

<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:** [September 26, 2019, 4:06pm UTC](https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252/2 "2019-09-26T16:06:12Z")

</div>

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

I think backslash stopped working as part of the javafication changes that went into 6.4.0. Quoting the backslash (i.e. using "C:\\allLogs.log") might also work.

---

<div class="post-metadata">

**Author:** ![aditya127](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aditya127](https://discuss.elastic.co/u/aditya127)\
**Post date:** [September 27, 2019, 9:54am UTC](https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252/3 "2019-09-27T09:54:48Z")

</div>

Thanks .. it worked with "/" in the path.

---

<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:** [October 25, 2019, 10:00am UTC](https://discuss.elastic.co/t/logstash-7x-not-reading-from-log-file-same-working-for-6x-versions/201252/4 "2019-10-25T10:00:20Z")

</div>

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