Enable set fielddata=true in Kibana

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

}

}

}

Please someone advise me how to fix this.

do a
GET winlogbeat*/_mappings/

Hi

you mean run it as below'

GET winlogbeat*/_mappings/

{

"properties": {

"Days_Remaining": {

"type": "text",

"fielddata": true

}

}

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