# Replace Default Index Mapping

**URL:** <https://community.graylog.org/t/replace-default-index-mapping/17087>\
**Category:** Graylog Central (peer support)\
**Tags:** pipeline-rules, sidecar, winlogbeat\
**Created:** [September 8, 2020, 11:50am UTC](https://community.graylog.org/t/replace-default-index-mapping/17087 "2020-09-08T11:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beepjeep](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@beepjeep](https://community.graylog.org/u/beepjeep)\
**Post date:** [September 8, 2020, 11:50am UTC](https://community.graylog.org/t/replace-default-index-mapping/17087/1 "2020-09-08T11:50:34Z")

</div>

Hi,

I’ve got a simple question, how do I replace the default Index Mapping with a custom one?  
In this `https://docs.graylog.org/en/3.3/pages/configuration/elasticsearch.html#custom-index-mappings` document I don’t really understand how to do it. The type **“keyword”** doesn’t fit with my needs. I need to change it into **“winlogbeat\_user\_name”**.

Thanks for any answers in advance.

Best regards,  
beep

---

<div class="post-metadata">

**Author:** ![tmacgbay](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/tmacgbay/32/3878_2.png) [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Post date:** [September 9, 2020, 7:15pm UTC](https://community.graylog.org/t/replace-default-index-mapping/17087/2 "2020-09-09T19:15:17Z")

</div>

Those are two different things you are talking about there. Elasticsearch uses [these data types](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping-types.html) but “winlogbeat\_user\_name” is a field name applied to a data type of “keyword” which by default sounds correct… Do you want to change the field name? That would be a pipeline rule attached to the stream using the [rename\_field()](https://docs.graylog.org/en/latest/pages/pipelines/functions.html#rename-field) function. If it is the data type you want to change that would be going from “keyword” to what?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [September 23, 2020, 7:15pm UTC](https://community.graylog.org/t/replace-default-index-mapping/17087/3 "2020-09-23T19:15:18Z")

</div>

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