# Identify change in a field value

**URL:** https://discuss.elastic.co/t/identify-change-in-a-field-value/18196
**Category:** Elasticsearch
**Created:** [June 19, 2014, 2:36am UTC](https://discuss.elastic.co/t/identify-change-in-a-field-value/18196 "2014-06-19T02:36:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sandesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Sandesh\_Kumar](https://discuss.elastic.co/u/Sandesh_Kumar)
#### Post date: [June 19, 2014, 2:36am UTC](https://discuss.elastic.co/t/identify-change-in-a-field-value/18196/1 "2014-06-19T02:36:47Z")

</div>

Hi,

I am trying to evaluate elasticsearch for an analytics use case. The data  
is the logs generated by an ordering application. Below is a very  
simplistic representation of the logs generated.

doc1 : Contains sales man details -\> {salesman:'S1',agency:'The  
Wholesaler',branch:'B1'}  
doc2 : Contains the data about the current stock -\> {salesman:'S1',  
customerName:'Retailer', productname:'shoe', quantity:20,  
timestamp:'2014/06/18 10:00:00'}  
doc3 : Contains data about new stock (Indicated by later timestamp and an  
updated quantity) -\> {salesman:'S1', customerName:'Retailer',  
productname:'shoe', quantity:40, timestamp:'2014/06/18 11:00:00'}

Doc2 and doc3 have the same structure. We need to identify the change in  
quantity and measure the sale of a given product on a given day and  
aggregate based on various parameters and analyze.  
What would be the best way to approach this?

thanks  
Sandesh

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a16fa468-f3e5-486f-9b6c-520924ad59d1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a16fa468-f3e5-486f-9b6c-520924ad59d1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:21am UTC](https://discuss.elastic.co/t/identify-change-in-a-field-value/18196/2 "2017-07-06T01:21:22Z")

</div>


