# Winlogbeat 1.x works fine but can't get 5 up

**URL:** https://discuss.elastic.co/t/winlogbeat-1-x-works-fine-but-cant-get-5-up/66245
**Category:** Beats
**Tags:** winlogbeat
**Created:** [November 16, 2016, 11:56am UTC](https://discuss.elastic.co/t/winlogbeat-1-x-works-fine-but-cant-get-5-up/66245 "2016-11-16T11:56:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![seanthebear](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@seanthebear](https://discuss.elastic.co/u/seanthebear)
#### Post date: [November 16, 2016, 11:56am UTC](https://discuss.elastic.co/t/winlogbeat-1-x-works-fine-but-cant-get-5-up/66245/1 "2016-11-16T11:56:13Z")

</div>

Hi  
First post - trying to set up winlogbeat on Server 2012 R2. I'm able to get the older version to function but V5 seems to fall over because I can't load the template.

Powershell is a no go it seems but running curl from the elk box with the supplied template in a local folder doesn;t work.  
curl -XPUT [http://localhost:9200/\_template/winlogbeat](http://localhost:9200/_template/winlogbeat) -d@/tmp/winlogbeatjson1/winlogbeat.template.json

And I get a string of errors  
{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"No handler for type [keyword] declared on field [related\_activity\_id]"}],"type":"mapper\_parsing\_exception","reason":"Failed to parse mapping [_default_]: No handler for type [keyword] declared on field [related\_activity\_id]","caused\_by":{"type":"mapper\_parsing\_exception","reason":"No handler for type [keyword] declared on field [related\_activity\_id]"}},"status":400}[root@elk-srp tmp]#

SSl/TLS is irrelevant in this config so has been removed. I've followed the getting started guide to the letter and have hit this same issue on two machines.

Where is the relevant template for 5? I had a similar issue with the previous version until I loaded the correct json.

---

<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: [November 16, 2016, 2:48pm UTC](https://discuss.elastic.co/t/winlogbeat-1-x-works-fine-but-cant-get-5-up/66245/2 "2016-11-16T14:48:53Z")

</div>

Winlogbeat 5.x can automatically install the index template if it is not already installed. It detects the ES version (either 5.x or 2.x) and installs the appropriate index template. If using the recommended installation process and default elasticsearch output config this should happen by default. It will not overwrite a template if one already exists (but this is all [configurable](https://www.elastic.co/guide/en/beats/winlogbeat/current/elasticsearch-output.html#_template)).

If you are using ES 2.x and you want to manually install the index template then use the `winlogbeat.template-es2x.json` file. It's for ES 2.x and does not make use of the newer `keyword` type.

---

<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: [December 14, 2016, 2:49pm UTC](https://discuss.elastic.co/t/winlogbeat-1-x-works-fine-but-cant-get-5-up/66245/3 "2016-12-14T14:49:18Z")

</div>

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