# Giving filebeat admin rights to read from fileshare

**URL:** https://discuss.elastic.co/t/giving-filebeat-admin-rights-to-read-from-fileshare/334971
**Category:** Beats
**Tags:** filebeat
**Created:** [June 1, 2023, 12:00pm UTC](https://discuss.elastic.co/t/giving-filebeat-admin-rights-to-read-from-fileshare/334971 "2023-06-01T12:00:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![\_Zeyad\_Elshater](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_zeyad_elshater/32/119684_2.png) [@\_Zeyad\_Elshater](https://discuss.elastic.co/u/_Zeyad_Elshater)
#### Post date: [June 1, 2023, 12:00pm UTC](https://discuss.elastic.co/t/giving-filebeat-admin-rights-to-read-from-fileshare/334971/1 "2023-06-01T12:00:47Z")

</div>

Hi all, I have filebeat as a windows service, It supposed to read logs from a fileshare on my VM, which must be accessed using the admin account, when I log on the service of filebeat as the admin account it can't access the fileshare and can't read the logs,but when I open the powershell as admin, and run the command " ./filebeat.exe " , it can see the fileshare and successefully read the logs and send it to elasticsearch.

how to solve this issue without having to deal with powershell as I want to automate the process from ansible

by the way ansible is using the admin account to install and run the service of filebeat.

Thanks 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: [June 29, 2023, 2:01pm UTC](https://discuss.elastic.co/t/giving-filebeat-admin-rights-to-read-from-fileshare/334971/2 "2023-06-29T14:01:32Z")

</div>

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