# Input File plugin permissions

**URL:** <https://discuss.elastic.co/t/input-file-plugin-permissions/197515>\
**Category:** Logstash\
**Created:** [August 30, 2019, 12:17pm UTC](https://discuss.elastic.co/t/input-file-plugin-permissions/197515 "2019-08-30T12:17:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nujojo](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@nujojo](https://discuss.elastic.co/u/nujojo)\
**Post date:** [August 30, 2019, 12:17pm UTC](https://discuss.elastic.co/t/input-file-plugin-permissions/197515/1 "2019-08-30T12:17:24Z")

</div>

Hi Guys,

Hope you can help.  
I have configured Logstash Input File plugin to read the files and send further.

1. Application is creating the file logs.log in /home/user/logs.log with permissions: -rw-r-----
2. Logstash is able to read the file only if I change file logs.log permission to execute: -rwxr-xr-x.

Why logstash requires execute the files?  
And how to make proper way for logstash to read those files, were all the time new logs.log files are created?

---

<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:** [August 30, 2019, 1:16pm UTC](https://discuss.elastic.co/t/input-file-plugin-permissions/197515/2 "2019-08-30T13:16:14Z")

</div>

I think it is more likely that logstash requires the files to be world-readable rather than executable. That would suggest that logstash is being run by a user that is not in the same group that the files are owned by.

---

<div class="post-metadata">

**Author:** ![nujojo](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@nujojo](https://discuss.elastic.co/u/nujojo)\
**Post date:** [September 2, 2019, 7:09am UTC](https://discuss.elastic.co/t/input-file-plugin-permissions/197515/3 "2019-09-02T07:09:36Z")

</div>

Thanks it works!

---

<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:** [September 30, 2019, 7:10am UTC](https://discuss.elastic.co/t/input-file-plugin-permissions/197515/4 "2019-09-30T07:10:18Z")

</div>

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