# Check conditions based on previous timestamp value and create new field

**URL:** <https://discuss.elastic.co/t/check-conditions-based-on-previous-timestamp-value-and-create-new-field/91780>\
**Category:** Elasticsearch\
**Created:** [July 4, 2017, 1:21pm UTC](https://discuss.elastic.co/t/check-conditions-based-on-previous-timestamp-value-and-create-new-field/91780 "2017-07-04T13:21:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tejas\_Ghutukade](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tejas\_Ghutukade](https://discuss.elastic.co/u/Tejas_Ghutukade)\
**Post date:** [July 4, 2017, 1:21pm UTC](https://discuss.elastic.co/t/check-conditions-based-on-previous-timestamp-value-and-create-new-field/91780/1 "2017-07-04T13:21:24Z")

</div>

Hi,

i want to do a condition check with all the times-tamp sorted previous records and then depending on the condition create a field with true or false for the current record.

but m not sure how to proceed with this.  
any guidance will be appreciated .  
thanks.

---

<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:** [August 1, 2017, 1:21pm UTC](https://discuss.elastic.co/t/check-conditions-based-on-previous-timestamp-value-and-create-new-field/91780/2 "2017-08-01T13:21:45Z")

</div>

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