# How to change default file permission of log files in /var/log/logstash/

**URL:** <https://discuss.elastic.co/t/how-to-change-default-file-permission-of-log-files-in-var-log-logstash/241868>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [July 20, 2020, 9:35am UTC](https://discuss.elastic.co/t/how-to-change-default-file-permission-of-log-files-in-var-log-logstash/241868 "2020-07-20T09:35:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chitreshg](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@chitreshg](https://discuss.elastic.co/u/chitreshg)\
**Post date:** [July 20, 2020, 9:35am UTC](https://discuss.elastic.co/t/how-to-change-default-file-permission-of-log-files-in-var-log-logstash/241868/1 "2020-07-20T09:35:20Z")

</div>

I want to change the default file permission of logstash's log files as 600, currently it is 644.  
In **logstash.yml** file I found only the file path and log level related information but I didn't get any file permission related info.  
so can any one suggest how to change it?

---

<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:** [July 20, 2020, 5:07pm UTC](https://discuss.elastic.co/t/how-to-change-default-file-permission-of-log-files-in-var-log-logstash/241868/2 "2020-07-20T17:07:37Z")

</div>

You may be able to adjust it in the log4j2 configuration. See [here](https://issues.apache.org/jira/browse/LOG4J2-1699).

---

<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:** [August 17, 2020, 5:07pm UTC](https://discuss.elastic.co/t/how-to-change-default-file-permission-of-log-files-in-var-log-logstash/241868/3 "2020-08-17T17:07:38Z")

</div>

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