# Custom field formatter

**URL:** <https://discuss.elastic.co/t/custom-field-formatter/250801>\
**Category:** Kibana\
**Created:** [October 2, 2020, 2:25pm UTC](https://discuss.elastic.co/t/custom-field-formatter/250801 "2020-10-02T14:25:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_k\_b](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@g\_k\_b](https://discuss.elastic.co/u/g_k_b)\
**Post date:** [October 2, 2020, 2:25pm UTC](https://discuss.elastic.co/t/custom-field-formatter/250801/1 "2020-10-02T14:25:23Z")

</div>

Hello there! 🙂  
I need to create a custom field formatter; I found [this article](https://www.elastic.co/blog/kibana-custom-field-formatters)  
which is a kind of guide for Kibana 4._. Where could I find something similar for Kibana 7._?  
I'm asking because I noticed that everything is changed so the guide lines in the link seem "old".

Thank you in advance for sharing your knowledges 🙂

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [October 5, 2020, 4:50pm UTC](https://discuss.elastic.co/t/custom-field-formatter/250801/2 "2020-10-05T16:50:58Z")

</div>

There isn't really a guide like that for Kibana 7 as most of it has been added as features in the formatters list. Is there anything specific you're trying to achieve? We can try and help with that.

---

<div class="post-metadata">

**Author:** ![g\_k\_b](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@g\_k\_b](https://discuss.elastic.co/u/g_k_b)\
**Post date:** [October 6, 2020, 7:07am UTC](https://discuss.elastic.co/t/custom-field-formatter/250801/3 "2020-10-06T07:07:08Z")

</div>

Thanh you for your answer Marius.  
I need to hide confidential data, so at first I used the _truncated string_ formatter keeping only the first 3 characters; since everything over the third character has been truncated, the visualizations I built with the "clear" data transformed into a mess because, for example, the ID **123ABC** went in the same bucket of the ID **123ZXW**.  
In conclusion, I'm looking for a formatter which hides informations only to the reader and not to Kibana, so that Kibana can keep working with the full data.  
I hope I was clear enough 🙂

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [October 11, 2020, 9:08pm UTC](https://discuss.elastic.co/t/custom-field-formatter/250801/4 "2020-10-11T21:08:54Z")

</div>

I can't really see a way of doing this while having the data actually secure, as a Kibana user can see the request/response in the Inspector or even in the browser console.  
To keep the data secure, you should just create different spaces for users based on their security credentials and only show them the fields that you want them to be able to see. I recommend looking at DLS/FLS in Elasticsearch.

---

<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:** [November 8, 2020, 9:09pm UTC](https://discuss.elastic.co/t/custom-field-formatter/250801/5 "2020-11-08T21:09:06Z")

</div>

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