# Change value of particular field by "if" statement

**URL:** <https://discuss.elastic.co/t/change-value-of-particular-field-by-if-statement/132618>\
**Category:** Kibana\
**Created:** [May 21, 2018, 6:37am UTC](https://discuss.elastic.co/t/change-value-of-particular-field-by-if-statement/132618 "2018-05-21T06:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladimir\_Fomin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vladimir_fomin/32/31413_2.png) [@Vladimir\_Fomin](https://discuss.elastic.co/u/Vladimir_Fomin)\
**Post date:** [May 21, 2018, 6:37am UTC](https://discuss.elastic.co/t/change-value-of-particular-field-by-if-statement/132618/1 "2018-05-21T06:37:15Z")

</div>

I have a netflow data and netflow.protocol fileds there.  
I would change value of that field. If value is 17, value should be "UDP", if value is 6, value should be "TCP", if 1 - "ICMP" etc. Can I do that from Kibana or I should do that by logstash mutate method?  
Can I use scripted fields for that?

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [May 21, 2018, 6:47am UTC](https://discuss.elastic.co/t/change-value-of-particular-field-by-if-statement/132618/2 "2018-05-21T06:47:15Z")

</div>

In [ElastiFlow™](https://github.com/robcowart/elastiflow) the translate filter is used for that... and many more things. Take a look...

> **[robcowart/elastiflow](https://github.com/robcowart/elastiflow)**
>
> elastiflow - Network flow Monitoring (Netflow, sFlow and IPFIX) with the Elastic Stack

---

<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:** [June 18, 2018, 6:47am UTC](https://discuss.elastic.co/t/change-value-of-particular-field-by-if-statement/132618/3 "2018-06-18T06:47:16Z")

</div>

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