# Query to Check if a Value has Changed

**URL:** <https://discuss.elastic.co/t/query-to-check-if-a-value-has-changed/61198>\
**Category:** Kibana\
**Created:** [September 22, 2016, 4:51am UTC](https://discuss.elastic.co/t/query-to-check-if-a-value-has-changed/61198 "2016-09-22T04:51:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suaveh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suaveh/32/12071_2.png) [@suaveh](https://discuss.elastic.co/u/suaveh)\
**Post date:** [September 22, 2016, 4:51am UTC](https://discuss.elastic.co/t/query-to-check-if-a-value-has-changed/61198/1 "2016-09-22T04:51:20Z")

</div>

Good day,

I want to run a query on an index to see if a value has changed for a certain field after a certain date.

For example, my document looks like this:

{  
"@timestamp" : "2016-09-22T00:02:02.297Z",  
"result" : "successful",  
"test\_class" : "A"  
}

I want to get which test\_class started to have a result == failure after a certain timestamp, given that test\_class used to have result == successful before that said timestamp.

Is this query possible using kibana filters?

Background: I have an automated test that stores its results in elasticsearch. I want to know which tests started to fail after a certain change was done.

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:** [July 6, 2017, 1:38pm UTC](https://discuss.elastic.co/t/query-to-check-if-a-value-has-changed/61198/2 "2017-07-06T13:38:31Z")

</div>


