# Change a field name for better visualization

**URL:** <https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148>\
**Category:** Kibana\
**Created:** [February 6, 2020, 10:47am UTC](https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148 "2020-02-06T10:47:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [February 6, 2020, 10:47am UTC](https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148/1 "2020-02-06T10:47:08Z")

</div>

I have an index that shows an number ID, less ideal to visualize in a graph. I would like to change it to an actual name based on a table.  
I tried to use synonyms, but I don't seem to get it work with Kibana visualization.  
Is there a way to do it?  
Would it be better to reindex with logstash and add a field instead, but then how would I call that table? I don't want to put it in a DB.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 6, 2020, 11:05am UTC](https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148/2 "2020-02-06T11:05:06Z")

</div>

That sounds like a perfect use case for the "Static lookup" field formatter configurable in the index pattern. Go into your index pattern in the management section, edit a field (by clicking the pencil icon right to it) and then select the static lookup formatter. Now you can enter your mappings (id -\> name) and they should show up in visualizations.

 ![Screenshot 2020-02-06 at 12.03.11](https://us1.discourse-cdn.com/elastic/original/3X/1/e/1ea3598b41b77c3e9e00064ff3e97dd77c72372f.png)

---

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [February 6, 2020, 12:44pm UTC](https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148/3 "2020-02-06T12:44:40Z")

</div>

Exactly what I was looking for! thanks!

---

<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:** [March 5, 2020, 12:44pm UTC](https://discuss.elastic.co/t/change-a-field-name-for-better-visualization/218148/4 "2020-03-05T12:44:42Z")

</div>

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