# Logstash 7.4 Input file for .log files not working in windows

**URL:** <https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726>\
**Category:** Logstash\
**Created:** [October 29, 2019, 5:11pm UTC](https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726 "2019-10-29T17:11:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanurani](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@sanurani](https://discuss.elastic.co/u/sanurani)\
**Post date:** [October 29, 2019, 5:11pm UTC](https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726/1 "2019-10-29T17:11:07Z")

</div>

Attempting to create logfile dashboard in Kibana via ELK.

Tried simple STDIN which worked and was able to see the data on Kibana as well.

where as file input option not working in windows, especially .log files .  
I would appreciate any help here and below is the code snippet

input {  
file {  
path =\> "C:/Users/logs/applicationlog.2019-08-14/application.log.2019-08-14.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}  
}

filter {  
grok {  
match =\> {  
"message" =\> "%{TIMESTAMP\_ISO8601:timestamp}%{SPACE}"  
}

```
    }

```

}

output {  
elasticsearch  
{  
hosts =\> ["localhost:9200"]  
index =\> "logs-%{+YYYY.MM.dd}"  
}

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:** [October 29, 2019, 5:17pm UTC](https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726/2 "2019-10-29T17:17:01Z")

</div>

If the file input is not reading the file try enabling log.level TRACE.

---

<div class="post-metadata">

**Author:** ![sanurani](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@sanurani](https://discuss.elastic.co/u/sanurani)\
**Post date:** [October 29, 2019, 5:30pm UTC](https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726/3 "2019-10-29T17:30:43Z")

</div>

Thank you for quick response .

The issue was on my end, file type was not saved as .log on test region. it works now

---

<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:** [November 26, 2019, 5:30pm UTC](https://discuss.elastic.co/t/logstash-7-4-input-file-for-log-files-not-working-in-windows/205726/4 "2019-11-26T17:30:44Z")

</div>

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