# File beats should work on windows server 2008R2?

**URL:** <https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 30, 2015, 1:27pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899 "2015-11-30T13:27:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lavanya\_Anne](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lavanya\_Anne](https://discuss.elastic.co/u/Lavanya_Anne)\
**Post date:** [November 30, 2015, 1:27pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/1 "2015-11-30T13:27:51Z")

</div>

i am trying to start the file beat service it is throwing error. please help me.

Error is the **service could not respond in timely fashion**

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 30, 2015, 1:33pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/2 "2015-11-30T13:33:14Z")

</div>

How are you installing it as a service? IIRC Filebeat itself isn't service-capable so you'd have to be using some kind of wrapper executable.

---

<div class="post-metadata">

**Author:** ![Lavanya\_Anne](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lavanya\_Anne](https://discuss.elastic.co/u/Lavanya_Anne)\
**Post date:** [November 30, 2015, 1:41pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/3 "2015-11-30T13:41:26Z")

</div>

By using powershell script

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 30, 2015, 2:39pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/4 "2015-11-30T14:39:04Z")

</div>

- Which version are you using?
- What is the command you are running to start it?
- What is your configuration?

---

<div class="post-metadata">

**Author:** ![Lavanya\_Anne](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lavanya\_Anne](https://discuss.elastic.co/u/Lavanya_Anne)\
**Post date:** [December 1, 2015, 5:49am UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/5 "2015-12-01T05:49:08Z")

</div>

1.version 1.0.0  
2. net start filebeat  
3. $workdir = C:\filebeat-1.0.0-beta4-windows

# create new service

New-Service -name filebeat `-displayName filebeat`  
-binaryPathName "$workdir\filebeat.exe -c $workdir\filebeat.yml"

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 1, 2015, 6:26am UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/6 "2015-12-01T06:26:23Z")

</div>

Does it work if you start Filebeat outside in a command prompt, i.e. not as a service?

---

<div class="post-metadata">

**Author:** ![Lavanya\_Anne](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lavanya\_Anne](https://discuss.elastic.co/u/Lavanya_Anne)\
**Post date:** [December 1, 2015, 7:02am UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/7 "2015-12-01T07:02:34Z")

</div>

yes i tried it is throwing the error message :  
the service is not responded to the control function

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 1, 2015, 7:10am UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/8 "2015-12-01T07:10:56Z")

</div>

No, that's not what I asked. I asked what happens if you _don't_ run it as a service, i.e. does

```
C:\filebeat-1.0.0-beta4-windows\filebeat -c C:\filebeat-1.0.0-beta4-windows\filebeat.yml

```

work?

Anyway, Filebeat itself doesn't function as a Windows service. I believe PowerShell's New-Service cmdlet just installs the necessary registry entries and requires the executable to respond to Windows' service callback, which Filebeat doesn't do. Look into [NSSM](http://nssm.cc/) or similar.

---

<div class="post-metadata">

**Author:** ![Lavanya\_Anne](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lavanya\_Anne](https://discuss.elastic.co/u/Lavanya_Anne)\
**Post date:** [December 2, 2015, 6:18am UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/9 "2015-12-02T06:18:55Z")

</div>

thanx service was started

---

<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 5, 2017, 9:57pm UTC](https://discuss.elastic.co/t/file-beats-should-work-on-windows-server-2008r2/35899/10 "2017-07-05T21:57:48Z")

</div>


