# WinLogBeat Setup

**URL:** https://discuss.elastic.co/t/winlogbeat-setup/184131
**Category:** Beats
**Tags:** winlogbeat
**Created:** [June 4, 2019, 9:38am UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131 "2019-06-04T09:38:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)
#### Post date: [June 4, 2019, 9:38am UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/1 "2019-06-04T09:38:26Z")

</div>

Hi,

I'm new to WinLogBeat and trying to setup in my work machine and ofcourse due to lack of Admin privileges I'm not able to start WinLogBeat as a service as mentioned in the setup docs. I have couple of questions on how WinLogBeat works, tried exploring in google, but couldn't find an answer.

1. Why every tutorial on internet suggests to copy the WinLogBeat dir into **C:\program files**. Won't it work If this is outside of **C** drive ?
2. Why do we need to start this as a service. I was able to work with FileBeat without having such issues.
3. How do WinLogBeat knows that In where to look for Windows services details !  
Does it just listens to windows events and keep sending the events to output as per the config mentioned in **winlogbeat.yml**.

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/8/483214ddb08c45e6bf94fbd1ad0e530306ddd532.png)

---

<div class="post-metadata">

### Author: ![greyfire](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@greyfire](https://discuss.elastic.co/u/greyfire)
#### Post date: [June 6, 2019, 6:04pm UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/2 "2019-06-06T18:04:04Z")

</div>

Tutorials suggest C:\Programs because that's where most programs run and they like to keep things organized. I will run outside of that.

You don't have to have it run as a service but doing so will enable it to survive and comeback up automatically after a reboot or power cycle.

Not quite sure what you are asking with the last question but the .yml file tells it what to send. Also FYI make sure you put "ignore\_older: 24h" after every log. Your screenshot will ignore that for the application log. The security and system log will send ALL logs every time that restarts duplicating lots of data.

---

<div class="post-metadata">

### Author: ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)
#### Post date: [June 7, 2019, 5:11am UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/3 "2019-06-07T05:11:12Z")

</div>

Thanks for the reply.

> [@greyfire](#):
>
> Tutorials suggest C:\Programs because that's where most programs run and they like to keep things organized. I will run outside of that.

So I will get the same output even If I place my WinLogBeat outside of c:Programs ( Even If I place in the different drive- D:\ ) right !

1. If I'm not running WinLogBeat as service, I can just run winlogbeat.exe right ?

Sorry. I didn't get your last point about security & system logs. Can you put it in a different way or elaborate please !

---

<div class="post-metadata">

### Author: ![greyfire](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@greyfire](https://discuss.elastic.co/u/greyfire)
#### Post date: [July 2, 2019, 1:53pm UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/4 "2019-07-02T13:53:50Z")

</div>

I believe that to be true as I run it from c:  
Regarding the setting for logs see attached...

 ![WLB](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2e44b00cbb6b1814df66b59c9f02445548916b14.jpeg)

---

<div class="post-metadata">

### Author: ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)
#### Post date: [July 3, 2019, 5:21am UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/5 "2019-07-03T05:21:41Z")

</div>

thanks for the info

---

<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: [July 31, 2019, 5:21am UTC](https://discuss.elastic.co/t/winlogbeat-setup/184131/6 "2019-07-31T05:21:55Z")

</div>

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