# Logstash not reading data from text file in windows

**URL:** <https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013>\
**Category:** Logstash\
**Tags:** windows\
**Created:** [December 25, 2019, 10:46am UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013 "2019-12-25T10:46:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayyadsays](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sayyadsays](https://discuss.elastic.co/u/sayyadsays)\
**Post date:** [December 25, 2019, 10:46am UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/1 "2019-12-25T10:46:18Z")

</div>

Hi  
when i tried with stdin{} it works fine. but reading from file not getting any data in elasticsearch in windows.

Please find the below conf details.

Conf file:  
input{  
# stdin{}  
file{  
type =\>"syslog"  
path =\> ["D:/Logs\_Montoring/LogAnalysis/logstash-7.5.0/logs.txt"]  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}  
}  
output{

stdout{  
codec =\> rubydebug  
}  
elasticsearch{  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
index =\> "logs"  
}  
}

Input file data:  
Timestamp: 12/24/2019 5:42:04 AM

Message: Task timed out - SDFC is not responding in timely manner

Category: Error

Priority: -1

EventId: 1

Severity: Information

Title:

Machine: AS00049

App Domain: /ED/W3SVC/64/ROOT/PRP.Services/merchant/eondod.dkos.do-301-132216577167216650

ProcessId: 15068

Process Name: c:\windows\system32\inetsrv\w3wp.exe

Thread Name: Win32 ThreadId:19512

Extended Properties: WebSession - NE343.NE2332@Q7T0+cK7Bf4UOzfKe9F8HUv6yC4=

---

<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:** [December 25, 2019, 2:53pm UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/2 "2019-12-25T14:53:20Z")

</div>

Set log.level to trace and see what filewatch has to say.

---

<div class="post-metadata">

**Author:** ![sayyadsays](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sayyadsays](https://discuss.elastic.co/u/sayyadsays)\
**Post date:** [December 26, 2019, 1:59am UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/3 "2019-12-26T01:59:48Z")

</div>

Hi Badger

i ran with debug mode : logstash -f bin\logstashtest  
.conf --debug

**Getting below error:**

[2019-12-25T20:52:15,894][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2019-12-25T20:52:15,896][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2019-12-25T20:52:20,467][DEBUG][org.logstash.execution.PeriodicFlush][main] Pushing flush onto pipeline.  
[2019-12-25T20:52:20,795][DEBUG][logstash.instrument.periodicpoller.cgroup] **One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu**

---

<div class="post-metadata">

**Author:** ![sayyadsays](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sayyadsays](https://discuss.elastic.co/u/sayyadsays)\
**Post date:** [December 26, 2019, 2:09am UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/4 "2019-12-26T02:09:31Z")

</div>

Hi

i am using below versions :

1. logstash- 7.5.0.0
2. kibana-7.5.0
3. elasticsearch-7.5.0
4. jdk1.8.0
5. windows server 2008 64bit

---

<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:** [December 26, 2019, 2:04pm UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/5 "2019-12-26T14:04:08Z")

</div>

As I said, set log.level to trace, not debug.

---

<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:** [January 23, 2020, 2:04pm UTC](https://discuss.elastic.co/t/logstash-not-reading-data-from-text-file-in-windows/213013/6 "2020-01-23T14:04:11Z")

</div>

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