# Logstash as windows service not reading log files

**URL:** https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455
**Category:** Logstash
**Created:** [May 11, 2017, 5:17pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455 "2017-05-11T17:17:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lgopalakrishnan](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@lgopalakrishnan](https://discuss.elastic.co/u/lgopalakrishnan)
#### Post date: [May 11, 2017, 5:17pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/1 "2017-05-11T17:17:46Z")

</div>

Hello,

I have logstash installed as a windows service and it is not reading the log files. When I run logstash from command prompt it works fine. Any help would be appreciated..

Thanks  
-Leelakrishnan

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 11, 2017, 6:01pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/2 "2017-05-11T18:01:59Z")

</div>

Probably a permissions issue. Check the effective permissions of the log file and make sure the user that Logstash runs as can read it.

---

<div class="post-metadata">

### Author: ![lgopalakrishnan](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@lgopalakrishnan](https://discuss.elastic.co/u/lgopalakrishnan)
#### Post date: [May 11, 2017, 7:03pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/3 "2017-05-11T19:03:47Z")

</div>

Hi,

The logstash service runs in Local System account. I tried another user who has permission to log files. But still logstash is not reading the log files.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 12, 2017, 3:43am UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/4 "2017-05-12T03:43:57Z")

</div>

How do you know the user has permission to read the files?

You can bump the Logstash log level to debug. Look for log entries with "glob". What do they say?

---

<div class="post-metadata">

### Author: ![lgopalakrishnan](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@lgopalakrishnan](https://discuss.elastic.co/u/lgopalakrishnan)
#### Post date: [May 12, 2017, 2:31pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/5 "2017-05-12T14:31:21Z")

</div>

Hi,

I do have "glob" entries in the log files and it say the names of my log files. Does that mean the user do not have the read permission? I thought the Local system account has the permission to read. Any suggestion is appreciated.

Thanks

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 12, 2017, 4:56pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/6 "2017-05-12T16:56:37Z")

</div>

> I do have "glob" entries in the log files and it say the names of my log files. Does that mean the user do not have the read permission?

Instead of describing log entries, show them (using copy/paste).

---

<div class="post-metadata">

### Author: ![lgopalakrishnan](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@lgopalakrishnan](https://discuss.elastic.co/u/lgopalakrishnan)
#### Post date: [May 12, 2017, 5:32pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/7 "2017-05-12T17:32:29Z")

</div>

Hi,

I got it working. Thank you for your hints.

---

<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: [June 9, 2017, 5:36pm UTC](https://discuss.elastic.co/t/logstash-as-windows-service-not-reading-log-files/85455/8 "2017-06-09T17:36:48Z")

</div>

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