# Enable set fielddata=true in Kibana

**URL:** <https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871>\
**Category:** Kibana\
**Created:** [November 8, 2018, 11:23am UTC](https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871 "2018-11-08T11:23:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roopeshetty](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@roopeshetty](https://discuss.elastic.co/u/roopeshetty)\
**Post date:** [November 8, 2018, 11:23am UTC](https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871/1 "2018-11-08T11:23:55Z")

</div>

All I want is to run this below commands in **DEV Tools – Console** of Kibana in order to enable set **fielddata=true** on one my newly created field “Days\_Remaining” (this new field we created using Grok filter in logstash.json).

I am putting like this in DEV Tools of Kibana; but its giving the error;

I am assuming winlogbeat\* is my index name as per the screenshot I have attached here.

I am really sorry to ask these kind of basic questions as I am very new to this ELK.

\_PUT winlogbeat\*/\_mapping/_doc_

_{_

_"properties": {_

_"Days\_Remaining": {_

_"type": "text",_

_"fielddata": true_

_}_

_}_

 ![kib1](https://us1.discourse-cdn.com/elastic/original/3X/0/9/090ee0ec602af968f74d0de79af67b667cb82827.png) ![kib2](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b76aa2429d593eebf0aa924652776b21bf61872b.png) ![kib3](https://us1.discourse-cdn.com/elastic/original/3X/0/6/066bd86c46add4265835d092a41f61008b97d845.png)

_}_

Please someone advise me how to fix this.

---

<div class="post-metadata">

**Author:** ![Luis\_N](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@Luis\_N](https://discuss.elastic.co/u/Luis_N)\
**Post date:** [November 8, 2018, 2:43pm UTC](https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871/2 "2018-11-08T14:43:40Z")

</div>

do a  
GET winlogbeat\*/\_mappings/

---

<div class="post-metadata">

**Author:** ![roopeshetty](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@roopeshetty](https://discuss.elastic.co/u/roopeshetty)\
**Post date:** [November 9, 2018, 11:11am UTC](https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871/3 "2018-11-09T11:11:14Z")

</div>

> [@Luis\_N](#):
>
> GET winlogbeat\*/\_mappings/

Hi

you mean run it as below'

GET winlogbeat\*/\_mappings/

{

"properties": {

"Days\_Remaining": {

"type": "text",

"fielddata": true

}

}

---

<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 7, 2018, 11:11am UTC](https://discuss.elastic.co/t/enable-set-fielddata-true-in-kibana/155871/4 "2018-12-07T11:11:28Z")

</div>

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