# Can you install winlogbeat in another folder

**URL:** https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400
**Category:** Beats
**Tags:** beats-module
**Created:** [April 20, 2023, 3:10pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400 "2023-04-20T15:10:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![iqworks](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@iqworks](https://discuss.elastic.co/u/iqworks)
#### Post date: [April 20, 2023, 3:10pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/1 "2023-04-20T15:10:20Z")

</div>

HI, it seems like the install instructions I have seen go into ProgramData or Program files. I want to install to a folder where all of my cyber security stuff?

thanks for any advice or suggestions

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [April 20, 2023, 3:43pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/2 "2023-04-20T15:43:10Z")

</div>

Just install in the folder you want, you will probably need to edit the `install-service-winlogbeat.ps1` to configure it as a service.

---

<div class="post-metadata">

### Author: ![iqworks](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@iqworks](https://discuss.elastic.co/u/iqworks)
#### Post date: [April 20, 2023, 6:20pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/3 "2023-04-20T18:20:48Z")

</div>

thanks leon

---

<div class="post-metadata">

### Author: ![iqworks](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@iqworks](https://discuss.elastic.co/u/iqworks)
#### Post date: [April 21, 2023, 1:55pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/4 "2023-04-21T13:55:21Z")

</div>

Hi Lean, what do i need to do in the ps1? Am changing a path?

thanks again for any help or suggestions.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [April 21, 2023, 2:09pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/5 "2023-04-21T14:09:41Z")

</div>

> [@iqworks](#):
>
> Hi Lean, what do i need to do in the ps1? Am changing a path?
> 
> thanks again for any help or suggestions.

I'm sorry, but I do not use Windows and cannot help on this, but you need to check the `ps1` script if it makes any reference to the default directories and change it.

---

<div class="post-metadata">

### Author: ![iqworks](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@iqworks](https://discuss.elastic.co/u/iqworks)
#### Post date: [April 21, 2023, 3:33pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/6 "2023-04-21T15:33:22Z")

</div>

Hi Lean, yes, I see what I have to change.  
I had to change the paths to "D:\vm workstation\winlogbeat" which is where i want winlogbeat to reside.

D:\vm workstation\winlogbeat\winlogbeat.exe" --environment=windows\_service -c "D:\vm workstation\winlogbeat\winlogbeat.yml" --path.home "D:\vm workstation\winlogbeat" --path.data "\VM WorkStation\winlogbeat" --path.logs "\VM WorkStation\winlogbeat\logs" -E logging.files.redirect\_stderr=true

Thanks, I would not have know to look at the ps1.

---

<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: [May 19, 2023, 5:34pm UTC](https://discuss.elastic.co/t/can-you-install-winlogbeat-in-another-folder/330400/7 "2023-05-19T17:34:20Z")

</div>

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