# Logstash file input not reading files when run as service

**URL:** <https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651>\
**Category:** Logstash\
**Created:** [May 22, 2016, 3:01pm UTC](https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651 "2016-05-22T15:01:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://discuss.elastic.co/u/tmo)\
**Post date:** [May 22, 2016, 3:01pm UTC](https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651/1 "2016-05-22T15:01:53Z")

</div>

This one is a bit odd. If I run logstash as any user from the command line, it will index the files, changes, etc., but when I run it as a service via the repo install on Ubuntu it just doesn't do anything with regard to the config that works perfectly fine when run manually.

I increased the logging to debug and there is nothing obvious.

If there anything I can post here the might help?

---

<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 22, 2016, 3:06pm UTC](https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651/2 "2016-05-22T15:06:39Z")

</div>

Probably insufficient permissions to read the log files. Reduce logging verbosity from debug to verbose to reduce the noise and you'll probably see some clues.

---

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://discuss.elastic.co/u/tmo)\
**Post date:** [May 25, 2016, 8:54pm UTC](https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651/3 "2016-05-25T20:54:51Z")

</div>

I finally gave up, I gave it all the permissions to no avail. I switched over to Filebeat which is working, but I still don't like poking a hole into the network.

---

<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 6, 2017, 4:56am UTC](https://discuss.elastic.co/t/logstash-file-input-not-reading-files-when-run-as-service/50651/4 "2017-07-06T04:56:13Z")

</div>


