# Converting value in field

**URL:** <https://discuss.elastic.co/t/converting-value-in-field/255527>\
**Category:** Logstash\
**Created:** [November 16, 2020, 12:34pm UTC](https://discuss.elastic.co/t/converting-value-in-field/255527 "2020-11-16T12:34:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lokesh\_Mayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lokesh_mayan/32/78641_2.png) [@Lokesh\_Mayan](https://discuss.elastic.co/u/Lokesh_Mayan)\
**Post date:** [November 16, 2020, 12:34pm UTC](https://discuss.elastic.co/t/converting-value-in-field/255527/1 "2020-11-16T12:34:54Z")

</div>

Hi i am having a log list like this

\<#\> 20200924 15:14:44.552 000000997 FD.WRN [MVINB-LSL2.T1G1\_ATMTH\_SL main.main ConfigService.ConfigService] Unable to get CommonParamConfig of [DAC\_TEST\_WHILE\_IDLE, \*]. Memory table not loaded yet

\<#\> 20200924 15:14:44.529 000000997 FD.INF [MVINB-LSL2.T1G1\_ATMTH\_SL main.main ConfigService.ConfigService] Update Switched Flag.

I want to convert the all the value with "FD.WRN" with "Warning" and "FD.INF" as "Info" and display as "warning" "Info" in the kibana. is there any way?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 16, 2020, 4:00pm UTC](https://discuss.elastic.co/t/converting-value-in-field/255527/2 "2020-11-16T16:00:29Z")

</div>

If you are parsing out that field, then you could use a translate filter. If you are just passing the message through then you could use mutate+gsub.

---

<div class="post-metadata">

**Author:** ![Lokesh\_Mayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lokesh_mayan/32/78641_2.png) [@Lokesh\_Mayan](https://discuss.elastic.co/u/Lokesh_Mayan)\
**Post date:** [November 17, 2020, 9:57am UTC](https://discuss.elastic.co/t/converting-value-in-field/255527/3 "2020-11-17T09:57:17Z")

</div>

Thank you so much @Badger 🤩 Got the respective output by using mutating and gsub =\> ["event\_type" , "FD.WRN" , "Warning"]  
gsub =\> ["event\_type" , "EV.WRN" , "Warning"]

---

<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 15, 2020, 9:57am UTC](https://discuss.elastic.co/t/converting-value-in-field/255527/4 "2020-12-15T09:57:30Z")

</div>

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