# Question regarding file and folder permissions when it comes to File output plugin

**URL:** <https://discuss.elastic.co/t/question-regarding-file-and-folder-permissions-when-it-comes-to-file-output-plugin/282873>\
**Category:** Logstash\
**Created:** [August 31, 2021, 4:19am UTC](https://discuss.elastic.co/t/question-regarding-file-and-folder-permissions-when-it-comes-to-file-output-plugin/282873 "2021-08-31T04:19:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillfreem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stillfreem/32/85628_2.png) [@stillfreem](https://discuss.elastic.co/u/stillfreem)\
**Post date:** [August 31, 2021, 4:19am UTC](https://discuss.elastic.co/t/question-regarding-file-and-folder-permissions-when-it-comes-to-file-output-plugin/282873/1 "2021-08-31T04:19:42Z")

</div>

# Problem

1. In my **Output** plugin I want to write all grok parse failures to a file

2. I have two servers on which I have the same configs. My file and parent folders permissions are as follows:

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/3/1/31b4a7aaf48bdb94f24c8a1516bdec2de0894c78.jpeg)

1. My question is - with these permissions on the parent folders `.` and `..` and on the `grokfailures` file, would that config work and all failures be written on disc in this file? I'm only asking proactively since my parser is working just fine at the moment and I have no failures and I prefer not to mess with it in all honesty 🙂

Also, from the Logstash doco, i don't quite understand the part about `file_mode` option and it's default -1 value?

Reference - [File output plugin | Logstash Reference [7.14] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-file.html#plugins-outputs-file-file_mode)

Thank you very much in advance 🙂

---

<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 28, 2021, 4:19am UTC](https://discuss.elastic.co/t/question-regarding-file-and-folder-permissions-when-it-comes-to-file-output-plugin/282873/2 "2021-09-28T04:19:48Z")

</div>

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