# Winlogbeat Mapping Template

**URL:** https://discuss.elastic.co/t/winlogbeat-mapping-template/57554
**Category:** Beats
**Tags:** winlogbeat
**Created:** [August 9, 2016, 6:46am UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554 "2016-08-09T06:46:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rhyse](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rhyse](https://discuss.elastic.co/u/rhyse)
#### Post date: [August 9, 2016, 6:46am UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/1 "2016-08-09T06:46:58Z")

</div>

Hi

I am having the following issue [Query Help search for $](https://discuss.elastic.co/t/query-help-search-for/57429)

I have loaded the default winlogbeat template (I'm using v5 Alpha 4 agents)

```auto
{
  "mappings": {
    "_default_": {
      "_all": {
        "enabled": true,
        "norms": {
          "enabled": false
        }
      },
      "dynamic_templates": [
        {
          "template1": {
            "mapping": {
              "doc_values": true,
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "{dynamic_type}"
            },
            "match": "*"
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "message": {
          "index": "analyzed",
          "type": "string"
        }
      }
    }
  },
  "settings": {
    "index.refresh_interval": "5s"
  },
  "template": "winlogbeat-*"
}

```

Any ideas as to what the impact may be to this change ? Or any other work arounds ?

Thanks

---

<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 9, 2016, 9:34pm UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/2 "2016-08-09T21:34:24Z")

</div>

Are you not using the [index template](https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-template.html) provided with Winlogbeat? Why? By default the all of the `event_data.*` fields are not\_analyzed strings.

This blog post might be of interest to you based on what you are querying: [Monitoring Windows Logons with Winlogbeat  
 ](https://www.elastic.co/blog/monitoring-windows-logons-with-winlogbeat)

---

<div class="post-metadata">

### Author: ![rhyse](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rhyse](https://discuss.elastic.co/u/rhyse)
#### Post date: [August 9, 2016, 9:51pm UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/3 "2016-08-09T21:51:45Z")

</div>

As far as I know I am using the index template from winlogbeat, from winlogbeat.template.json (pretty sure this was done to cover another issue I had)

How can I confirm this ?

Thanks

---

<div class="post-metadata">

### Author: ![rhyse](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rhyse](https://discuss.elastic.co/u/rhyse)
#### Post date: [August 9, 2016, 9:54pm UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/4 "2016-08-09T21:54:03Z")

</div>

To clarify I'm not loading the index it from the agents, I loaded it at the server side, from memory

---

<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 9, 2016, 10:01pm UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/5 "2016-08-09T22:01:29Z")

</div>

> [@rhyse](#):
>
> How can I confirm this ?

This will return the index template:

`curl http://localhost:9200/_template/winlogbeat?pretty`

This will return the mapping used for today's index. The data types should match whats in the index template.

`curl http://localhost:9200/winlogbeat-2016.08.09/_mapping?pretty`

You can paste the data to [http://pastebin.com](http://pastebin.com) and share the link because it's probably too big to post directly on here.

---

<div class="post-metadata">

### Author: ![rhyse](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rhyse](https://discuss.elastic.co/u/rhyse)
#### Post date: [August 10, 2016, 8:08am UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/6 "2016-08-10T08:08:45Z")

</div>

Ok. I was sure I had loaded that template, but it doesn't look like it was. I have now done so and I am getting better results

Will continue working through my issues.

Sorry for taking up your time

Thanks

---

<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 31, 2016, 8:08am UTC](https://discuss.elastic.co/t/winlogbeat-mapping-template/57554/7 "2016-08-31T08:08:49Z")

</div>

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