# Problem with filestream access denied on windows

**URL:** <https://discuss.elastic.co/t/problem-with-filestream-access-denied-on-windows/317086>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 20, 2022, 9:06am UTC](https://discuss.elastic.co/t/problem-with-filestream-access-denied-on-windows/317086 "2022-10-20T09:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drbytes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drbytes/32/112322_2.png) [@drbytes](https://discuss.elastic.co/u/drbytes)\
**Post date:** [October 20, 2022, 9:06am UTC](https://discuss.elastic.co/t/problem-with-filestream-access-denied-on-windows/317086/1 "2022-10-20T09:06:48Z")

</div>

Hello

I'm running into a problem with filebeat, an access denied. I have a directory located on c:\DIR1\DIR2\LOG\_DIR, LOG\_DIR contains the log files which are read by filebeat using a filestream glob. The user running filebeat has only access to that folder and all it's contents, it has no rights to DIR1 or DIR2. When I run filebeat it can query the files and find all the matching logs but then it throws an exception :

```auto
2022-10-20T10:55:02.079+0200 DEBUG [registrar] registrar/registrar.go:140 Starting Registrar
2022-10-20T10:55:02.079+0200 DEBUG [scanner] filestream/fswatch.go:277 recursive glob enabled
2022-10-20T10:55:02.080+0200 DEBUG [scanner] filestream/fswatch.go:367 finding path to original file has failed C:\DIR1\DIR2\LOG_DIR\log-API-20220923.json: CreateFile C:\DIR1: Access is denied.
2022-10-20T10:55:02.080+0200 DEBUG [scanner] filestream/fswatch.go:367 finding path to original file has failed C:\DIR1\DIR2\LOG_DIR\log-API-20220927.json: CreateFile C:\DIR1: Access is denied.
2022-10-20T10:55:02.080+0200 DEBUG [scanner] filestream/fswatch.go:367 finding path to original file has failed C:\DIR1\DIR2\LOG_DIR\\log-API-20220928.json: CreateFile C:\DIR1: Access is denied.

```

It seems that there is a check that will look for symlinks, but this causes it to query directories where it doesn't have the permissions for.

Is there a way to instruct filebeat to skip this check and just get on with parsing the file it found ?

Cheers

---

<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:** [November 17, 2022, 11:07am UTC](https://discuss.elastic.co/t/problem-with-filestream-access-denied-on-windows/317086/2 "2022-11-17T11:07:41Z")

</div>

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