# 2nd Winlogbeat Install same as the first...this one doesn't work

**URL:** https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764
**Category:** Beats
**Tags:** winlogbeat
**Created:** [August 2, 2018, 12:45pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764 "2018-08-02T12:45:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![JustTheDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justthedr/32/32324_2.png) [@JustTheDr](https://discuss.elastic.co/u/JustTheDr)
#### Post date: [August 2, 2018, 12:45pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/1 "2018-08-02T12:45:34Z")

</div>

I installed a Winlogbeat on my Windows 10 PC and everything was zen. I installed another on a Windows Server 2012 R2 Server and followed the same steps. I copied the contents of the winlogbeat.yml file from my first install on my PC since I had it configured already, overtop the contents of the default file I had on the server. Why re-invent the wheel right? And it is working on my PC sending data to my ElasticSearch server.

On the new server install, when I try to run the test config command I get an error. The service will also not start. I get an Error 1053: "The service did not respond to the start or control request in a timely fashion."

 ![winlogbeat%20powershell](https://us1.discourse-cdn.com/elastic/original/3X/0/6/0625409a1371dedcdf3223ff47cfeb90d0b827aa.png)

---

<div class="post-metadata">

### Author: ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)
#### Post date: [August 2, 2018, 1:21pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/2 "2018-08-02T13:21:41Z")

</div>

Can you post your config? This error sounds like a copy/paste error, maybe because of wrong indentation.

Best regards

---

<div class="post-metadata">

### Author: ![JustTheDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justthedr/32/32324_2.png) [@JustTheDr](https://discuss.elastic.co/u/JustTheDr)
#### Post date: [August 2, 2018, 1:51pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/3 "2018-08-02T13:51:03Z")

</div>

I have trimmed out the commented code for clarity's sake. It produces the same error, though except it references line 6 rather line 22.

#======================= Winlogbeat specific options ==========================

winlogbeat.event\_logs:

- name: Application  
ignore\_older: 72h
- name: Security  
ignore\_older: 24h
- name: System  
ignore\_older: 24h

#==================== Elasticsearch template setting ==========================

setup.template.settings:  
index.number\_of\_shards: 3

#============================== Kibana =====================================

#- Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.  
#- This requires a Kibana endpoint configuration.

setup.kibana:

#- Kibana Host

host: "10.1.0.248:5601"

#-------------------------- Elasticsearch output ------------------------------

output.elasticsearch:

#- Array of hosts to connect to.  
hosts: ["10.1.0.248:9200"]

---

<div class="post-metadata">

### Author: ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)
#### Post date: [August 2, 2018, 1:55pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/4 "2018-08-02T13:55:30Z")

</div>

can you please use the preformatted text button? Indentation gets mangled by Discuss if not

---

<div class="post-metadata">

### Author: ![JustTheDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justthedr/32/32324_2.png) [@JustTheDr](https://discuss.elastic.co/u/JustTheDr)
#### Post date: [August 2, 2018, 2:42pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/5 "2018-08-02T14:42:20Z")

</div>

```
#======================= Winlogbeat specific options ==========================

winlogbeat.event_logs:
- name: Application
ignore_older: 72h
- name: Security
ignore_older: 24h
- name: System
ignore_older: 24h

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3

#============================== Kibana =====================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

# Kibana Host
host: "10.1.0.248:5601"

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["10.1.0.248:9200"]
```

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [August 2, 2018, 2:55pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/6 "2018-08-02T14:55:19Z")

</div>

That's not valid YAML. Try your config at [http://www.yamllint.com/](http://www.yamllint.com/).

Move the `ignore_older` keys over by two spaces so that they are at the same level as the event log `name` with which they are associated.

```auto
winlogbeat.event_logs:
- name: Application
  ignore_older: 72h
- name: Security
  ignore_older: 24h
- name: System
  ignore_older: 24h

```

---

<div class="post-metadata">

### Author: ![JustTheDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justthedr/32/32324_2.png) [@JustTheDr](https://discuss.elastic.co/u/JustTheDr)
#### Post date: [August 2, 2018, 7:26pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/7 "2018-08-02T19:26:27Z")

</div>

Wow. I didn't realize that yaml was so touchy when it came to indentation. Thanks for your help!

---

<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 30, 2018, 7:26pm UTC](https://discuss.elastic.co/t/2nd-winlogbeat-install-same-as-the-first-this-one-doesnt-work/142764/8 "2018-08-30T19:26:45Z")

</div>

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