# Set registry and log files, owner and group

**URL:** https://discuss.elastic.co/t/set-registry-and-log-files-owner-and-group/312769
**Category:** Beats
**Tags:** filebeat
**Created:** [August 24, 2022, 7:08am UTC](https://discuss.elastic.co/t/set-registry-and-log-files-owner-and-group/312769 "2022-08-24T07:08:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nahiko](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nahiko](https://discuss.elastic.co/u/nahiko)
#### Post date: [August 24, 2022, 7:08am UTC](https://discuss.elastic.co/t/set-registry-and-log-files-owner-and-group/312769/1 "2022-08-24T07:08:10Z")

</div>

Hi!  
I am using filebeat 7.17  
I start Filebeat using a domain user (with systemd)  
The log files and registry file that Filebeat writes while it is working, are owned by the same user that starts Filebeat what is correct, but the group which owns those files is something like "DOMAIN USERS". I need to change this, so Filebeat writes registry and log files to be owned by Filebeat user BUT also another group which is not "DOMAIN USERS".

Can that be done? I could not find anything

---

<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 21, 2022, 9:08am UTC](https://discuss.elastic.co/t/set-registry-and-log-files-owner-and-group/312769/2 "2022-09-21T09:08:18Z")

</div>

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