# How to set umask in metricbeat?

**URL:** <https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068>\
**Category:** Beats\
**Created:** [October 6, 2017, 7:13pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068 "2017-10-06T19:13:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [October 6, 2017, 7:13pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068/1 "2017-10-06T19:13:33Z")

</div>

Hi,

how can i configure the umask for metricbeat logs?  
I build from source on arm system.  
When I start metricbeat it sets 600 as permission, but I would like to give other users than the beat process the permission to read them.

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [October 6, 2017, 7:44pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068/2 "2017-10-06T19:44:14Z")

</div>

Set `logging.files.permissions: 0600` (using your desired mask). See the [logging docs](https://www.elastic.co/guide/en/beats/metricbeat/6.0/configuration-logging.html#_literal_logging_files_permissions_literal).

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [October 6, 2017, 8:13pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068/3 "2017-10-06T20:13:25Z")

</div>

I've build 5.6.2.  
Its a new feature of 6.0.0, right?

does it work in 6.0.0 also for file output?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [October 6, 2017, 9:35pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068/4 "2017-10-06T21:35:41Z")

</div>

Yeah, that's only master and 6.0. It does not work for the file output, but there is a stalled PR open for it at [https://github.com/elastic/beats/pull/4638](https://github.com/elastic/beats/pull/4638) (I just realized it never merged.)

---

<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:** [October 27, 2017, 7:13pm UTC](https://discuss.elastic.co/t/how-to-set-umask-in-metricbeat/103068/5 "2017-10-27T19:13:46Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
