Kibana fieldFormatMap

using kibana version 5.4
Can we use the How to use the fieldFormatMap in the mapping JSON for a index?
Sample Mapping json.

{
"meshping": {
"_meta": {
"class": "com.pluribus.maestro.data.MeshPingEntity",
"version": {
"major": "1.00",
"minor": "1"
}
},
"_all": {
"enabled": true
},
"properties": {
"packetLoss": {
"type": "float"
}
}
}
}

I have to add color on packetLoss field so I have to add the fieldFormatMap
Sample fieldFormatMap
{
"fieldFormatMap": {
"packetLoss": {
"id": "color",
"params": {
"fieldType": "number",
"colors": [
{
"range": "60:100",
"regex": "",
"text": "#e51c4c",
"background": "#ffffff"
},
{
"range": "0:9",
"regex": "",
"text": "#1cdb4a",
"background": "#ffffff"
},
{
"range": "10:59",
"regex": "",
"text": "#e07b2d",
"background": "#ffffff"
}
]
}
}
}
}
how should I add this fieldFormatMap in this mapping document please help me out stuck on this for more than 2 weeks now.

Welcome to our community! :smiley:

5.X is no longer supported as it is very old and EOL. Please upgrade.

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