# Kibana fieldFormatMap

**URL:** <https://discuss.elastic.co/t/kibana-fieldformatmap/318741>\
**Category:** Kibana\
**Created:** [November 11, 2022, 12:43pm UTC](https://discuss.elastic.co/t/kibana-fieldformatmap/318741 "2022-11-11T12:43:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santosh\_Sahu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/santosh_sahu/32/113267_2.png) [@Santosh\_Sahu](https://discuss.elastic.co/u/Santosh_Sahu)\
**Post date:** [November 11, 2022, 12:43pm UTC](https://discuss.elastic.co/t/kibana-fieldformatmap/318741/1 "2022-11-11T12:43:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 15, 2022, 12:51am UTC](https://discuss.elastic.co/t/kibana-fieldformatmap/318741/2 "2022-11-15T00:51:53Z")

</div>

Welcome to our community! 😃

5.X is no longer supported as it is very old and [EOL](https://www.elastic.co/support/eol). Please upgrade.

---

<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 13, 2022, 12:52am UTC](https://discuss.elastic.co/t/kibana-fieldformatmap/318741/3 "2022-12-13T00:52:24Z")

</div>

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