# Kibana - Visualize Metric

**URL:** https://discuss.elastic.co/t/kibana-visualize-metric/266201
**Category:** Kibana
**Created:** [March 4, 2021, 9:20am UTC](https://discuss.elastic.co/t/kibana-visualize-metric/266201 "2021-03-04T09:20:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cvasilak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cvasilak/32/84933_2.png) [@cvasilak](https://discuss.elastic.co/u/cvasilak)
#### Post date: [March 4, 2021, 9:20am UTC](https://discuss.elastic.co/t/kibana-visualize-metric/266201/1 "2021-03-04T09:20:40Z")

</div>

hey all,

apologies but currently I am new to Elastic and Kibana and need some guidance. I have a custom app that puts an index that contains a 'payload' field which is a String and stored as-is. That 'payload' field is overloaded and can contain different types e.g. Integer, Floats, String depending on another field called 'path'. If the 'path' is equal to some fixed value A the 'payload' field should be interpreted as a string otherwise if the 'path' field is equal to B the 'payload' field should be interpreted as an integer.

I was wondering if I want to create a time series graph in Kibana that displays this 'payload' field when the 'path' field is equal to B. Since it's a string I can't select it in Kibana so I need to convert it to an Integer "on-the-fly". Wondering if this is possible? Assuming I can not change the source app but do the processing of the field in Elastic/Kibana part.

Will appreciate some ideas and guidance.

Thanks!

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [March 4, 2021, 9:56pm UTC](https://discuss.elastic.co/t/kibana-visualize-metric/266201/2 "2021-03-04T21:56:40Z")

</div>

Hello,

Scripted fields might help you here?

> **[Scripted fields | Kibana Guide \[7.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)**

Please note they are expensive in terms of operations cost. If you can make mapping work at the site your data ingestion - it might get easier.

Thanks  
Bhavya

---

<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: [April 1, 2021, 9:56pm UTC](https://discuss.elastic.co/t/kibana-visualize-metric/266201/3 "2021-04-01T21:56:44Z")

</div>

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