# Problems With Winlogbeat

**URL:** https://discuss.elastic.co/t/problems-with-winlogbeat/308508
**Category:** Beats
**Tags:** winlogbeat
**Created:** [June 29, 2022, 6:33pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508 "2022-06-29T18:33:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jared9922](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jared9922/32/99712_2.png) [@Jared9922](https://discuss.elastic.co/u/Jared9922)
#### Post date: [June 29, 2022, 6:33pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508/1 "2022-06-29T18:33:20Z")

</div>

Hello, I am trying to setup Winlogbeat and I am running into some issues. I was able to get it configured correctly and when I run it in debug mode it seems to run fine.

```auto
.\winlogbeat.exe -c winlogbeat.yml -e -v -d "*"

```

When I try to start it normally using this command

```auto
Start-Service winlogbeat

```

It doesn't start correctly. It gives me this error

```auto
Start-Service : Service 'winlogbeat (winlogbeat)' cannot be started due to the following error: Cannot start service
winlogbeat on computer '.'.
At line:1 char:1
+ Start-Service winlogbeat
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
   ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

```

I am running this virtual machine from a proxmox server.

I have also tried Googling around quite a bit and I can't seem to get any leads. The error is really unhelpful and doesn't seem to give me any leads

---

<div class="post-metadata">

### Author: ![eafrost.cissp](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@eafrost.cissp](https://discuss.elastic.co/u/eafrost.cissp)
#### Post date: [July 6, 2022, 3:21pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508/2 "2022-07-06T15:21:16Z")

</div>

Are you saving passwords to a keystore file? Look at the paths that the winlogbeat service is trying to use. If you use the .msi install for Winlogbeat, you need to create a C:\Program Files\Elastic\Beats\<version number\>\winlogbeat\data directory and copy the winlogbeat.keystore file that is in C:\ProgramData\Elastic\Beats\Winlogbeat\data directory to it. If you did a .zip install you need to do something similar but you paths will be different. Hope this fixes your problem.

---

<div class="post-metadata">

### Author: ![Jared9922](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jared9922/32/99712_2.png) [@Jared9922](https://discuss.elastic.co/u/Jared9922)
#### Post date: [July 13, 2022, 10:46pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508/3 "2022-07-13T22:46:41Z")

</div>

Yes, I am using a keystore file. I downloaded it using a .zip install. Winlogbeat is currently in  
C:/Program Files/Winlogbeat/winlogbeat.exe

The keystore is currently in  
C:/Program Files/Winlogbeat/data/winlogbeat.keystore

What do you mean when you say "Look at the paths that the winlogbeat service is trying to use" how would I check this?

I tried just adding the keystore file to the top-level directory where winlogbeat is located and didn't get me anywhere. I tried putting it in  
C:/Program Files/Winlogbeat/winlogbeat.keystore

This does narrow down my issue quite a bit though because the other setups that I had working didn't use a keystore.

---

<div class="post-metadata">

### Author: ![eafrost.cissp](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@eafrost.cissp](https://discuss.elastic.co/u/eafrost.cissp)
#### Post date: [July 18, 2022, 12:22pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508/4 "2022-07-18T12:22:56Z")

</div>

Open Control Panel -\> Administrative Tools -\> Services and navigate Elastics Winlogbeat . Right click and select properties. You will get a screen that looks like the following.

 ![Screenshot 2022-07-18 080503](https://us1.discourse-cdn.com/elastic/original/3X/e/a/ea8d7b48b229454f39f4945286d2820326baeefe.png)

In the 'Path to executable' section, you will see all the paths that are defined for winlogbeat.exe to use. In particular, you will see that it is using C:\ProgramData\Elastic\Beats\Winlogbeat\data as the data directory. A copy of your winlogbeat.keystore file needs to be in that location or else the service will not start.

---

<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: [August 15, 2022, 2:23pm UTC](https://discuss.elastic.co/t/problems-with-winlogbeat/308508/5 "2022-08-15T14:23:37Z")

</div>

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