# Using ES for historical usage

**URL:** <https://discuss.elastic.co/t/using-es-for-historical-usage/166412>\
**Category:** Elasticsearch\
**Created:** [January 30, 2019, 6:26pm UTC](https://discuss.elastic.co/t/using-es-for-historical-usage/166412 "2019-01-30T18:26:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eb1](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@eb1](https://discuss.elastic.co/u/eb1)\
**Post date:** [January 30, 2019, 6:26pm UTC](https://discuss.elastic.co/t/using-es-for-historical-usage/166412/1 "2019-01-30T18:26:44Z")

</div>

hi guys,  
I’m new with ES and I need your help 😊

I working on a system that needs to show the history of the data it’s got- what field changed, what is the new value, and when did it change. 🤯

The historical view is kinda like git diffs

Imagine an object called Person, with the fields: age,birth-date,address(country,city,street…),cellphone.  
The system gets updates of Person objects, and sometimes updates doesn’t change any value.  
But, when a person dies, the object has different fields: age,birth-date,time-of-death.  
On the history view I want to easily see the changes over specific Person in a specified time-range.

How should I store the data in that case?  
And How should I query the data with minimum manipulations “outside” the ES?

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:** [February 27, 2019, 6:26pm UTC](https://discuss.elastic.co/t/using-es-for-historical-usage/166412/2 "2019-02-27T18:26:44Z")

</div>

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