# How can we use the logstash values by trim some content to show in visualizations or new scripted parameters

**URL:** <https://discuss.elastic.co/t/how-can-we-use-the-logstash-values-by-trim-some-content-to-show-in-visualizations-or-new-scripted-parameters/237857>\
**Category:** Elasticsearch\
**Created:** [June 19, 2020, 7:43pm UTC](https://discuss.elastic.co/t/how-can-we-use-the-logstash-values-by-trim-some-content-to-show-in-visualizations-or-new-scripted-parameters/237857 "2020-06-19T19:43:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sajjithreddy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sajjithreddy](https://discuss.elastic.co/u/sajjithreddy)\
**Post date:** [June 19, 2020, 7:43pm UTC](https://discuss.elastic.co/t/how-can-we-use-the-logstash-values-by-trim-some-content-to-show-in-visualizations-or-new-scripted-parameters/237857/1 "2020-06-19T19:43:48Z")

</div>

Hello,

I have a event called "size" and the value be like "125433 Bytes" in log stash. I have few questions here.

1. Can we trim the value as 125433 and use in Visualization ? If so how can we do?
2. Can we convert the value into KB ? If so how can we do?

Please provide me the solution.

Thanks in advance.

Regards,  
Saj

---

<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:** [July 17, 2020, 7:44pm UTC](https://discuss.elastic.co/t/how-can-we-use-the-logstash-values-by-trim-some-content-to-show-in-visualizations-or-new-scripted-parameters/237857/2 "2020-07-17T19:44:04Z")

</div>

Closed on July 17, 2020, 7:44pm UTC

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