# Map keyword values for display

**URL:** <https://discuss.elastic.co/t/map-keyword-values-for-display/291042>\
**Category:** Kibana\
**Created:** [December 6, 2021, 1:05pm UTC](https://discuss.elastic.co/t/map-keyword-values-for-display/291042 "2021-12-06T13:05:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senor\_K2n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senor_k2n/32/98397_2.png) [@Senor\_K2n](https://discuss.elastic.co/u/Senor_K2n)\
**Post date:** [December 6, 2021, 1:05pm UTC](https://discuss.elastic.co/t/map-keyword-values-for-display/291042/1 "2021-12-06T13:05:19Z")

</div>

Hi,  
I'm relatively new to working with ELK, and I haven't found a response to this question yet.  
For storage optimization reasons, I want to use some aliases in my input files to store fixed values.  
However I would like to display information in a pretty and readable format.  
For instance, I have a field "status" in my dataset that can take 3 values: Civilian, Military and Student.  
I would like to use some keys so I can store the information in a compact format, for instance:  
1 =\> Civilian  
2 =\> Military  
3 =\> Student

How could I manage to then display the labelled information instead of the keys?

Thanks in advance,  
Regards,  
Arnaud

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 6, 2021, 1:41pm UTC](https://discuss.elastic.co/t/map-keyword-values-for-display/291042/2 "2021-12-06T13:41:46Z")

</div>

Multiple ways this could be done depending on your pipeline.

The best way is to shape the data coming in to do this using ingest processor or logstash translate filter if your data is going through there.

But if that's not an option the a runtime or scripted field using static lookup would work.

---

<div class="post-metadata">

**Author:** ![Senor\_K2n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senor_k2n/32/98397_2.png) [@Senor\_K2n](https://discuss.elastic.co/u/Senor_K2n)\
**Post date:** [December 6, 2021, 1:54pm UTC](https://discuss.elastic.co/t/map-keyword-values-for-display/291042/3 "2021-12-06T13:54:31Z")

</div>

Indeed, the static lookup filter in the index pattern was exactly what I needed!  
Thank you very much

---

<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:** [January 3, 2022, 1:55pm UTC](https://discuss.elastic.co/t/map-keyword-values-for-display/291042/4 "2022-01-03T13:55:25Z")

</div>

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