# Runtime Field - How to create a field (scripted field)

**URL:** <https://discuss.elastic.co/t/runtime-field-how-to-create-a-field-scripted-field/357430>\
**Category:** Kibana\
**Tags:** runtime\
**Created:** [April 15, 2024, 12:33pm UTC](https://discuss.elastic.co/t/runtime-field-how-to-create-a-field-scripted-field/357430 "2024-04-15T12:33:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ek9boy](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@ek9boy](https://discuss.elastic.co/u/ek9boy)\
**Post date:** [April 15, 2024, 12:33pm UTC](https://discuss.elastic.co/t/runtime-field-how-to-create-a-field-scripted-field/357430/1 "2024-04-15T12:33:27Z")

</div>

Hi,

I have a date value:  
@timestamp: 2024-04-01T12:08:00:548Z

I want to use the scripted field / runtime field option to creat a new field based on the logic below:

IF @timestamp \>= 10 minutes  
Then  
ten\_minute\_breach = “yes”  
else “no”

Finding it difficult to get this working

Any advice or help  
Thanks!

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [April 17, 2024, 7:24am UTC](https://discuss.elastic.co/t/runtime-field-how-to-create-a-field-scripted-field/357430/2 "2024-04-17T07:24:56Z")

</div>

hi @ek9boy

where is the `@timestamp` value stored?  
I'm asking this as runtime field painless can only access document level information, unless hardcoded in the script itself.
