# Create scripted field

**URL:** <https://discuss.elastic.co/t/create-scripted-field/261360>\
**Category:** Kibana\
**Created:** [January 17, 2021, 8:39pm UTC](https://discuss.elastic.co/t/create-scripted-field/261360 "2021-01-17T20:39:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ITchandj](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@ITchandj](https://discuss.elastic.co/u/ITchandj)\
**Post date:** [January 17, 2021, 8:39pm UTC](https://discuss.elastic.co/t/create-scripted-field/261360/1 "2021-01-17T20:39:55Z")

</div>

Hi togehter!!!

Hi all. i am new to Kibana and i want to create a scripted field to do the following calculation. how can it be done. Thank you in advance.

**StartupIOCount** = `StartupIOPS` \* `StartupTimeMs` / 1000

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [January 17, 2021, 11:09pm UTC](https://discuss.elastic.co/t/create-scripted-field/261360/2 "2021-01-17T23:09:32Z")

</div>

Simple and straight forward will be

```auto
(doc['StartupIOPS '].value * doc['StartupTimeMs '].value) / 1000

```

Please read - [https://www.elastic.co/blog/using-painless-kibana-scripted-fields](https://www.elastic.co/blog/using-painless-kibana-scripted-fields)

---

<div class="post-metadata">

**Author:** ![ITchandj](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@ITchandj](https://discuss.elastic.co/u/ITchandj)\
**Post date:** [January 18, 2021, 12:00pm UTC](https://discuss.elastic.co/t/create-scripted-field/261360/3 "2021-01-18T12:00:59Z")

</div>

thank you.

---

<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:** [February 15, 2021, 12:01pm UTC](https://discuss.elastic.co/t/create-scripted-field/261360/4 "2021-02-15T12:01:10Z")

</div>

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