# Adding a sycronisation key to elasticsearch

**URL:** <https://discuss.elastic.co/t/adding-a-sycronisation-key-to-elasticsearch/23375>\
**Category:** Elasticsearch\
**Created:** [April 23, 2015, 1:27pm UTC](https://discuss.elastic.co/t/adding-a-sycronisation-key-to-elasticsearch/23375 "2015-04-23T13:27:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_3](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@James\_3](https://discuss.elastic.co/u/James_3)\
**Post date:** [April 23, 2015, 1:27pm UTC](https://discuss.elastic.co/t/adding-a-sycronisation-key-to-elasticsearch/23375/1 "2015-04-23T13:27:55Z")

</div>

Hi,

I have a system where I grab lots of XML files throughout the day. I keep a  
"sycned.xml" and a load of datestamped files too. Synced.xml is the latest  
file which has been sycned with elasticsearch.

I run a program which works out the difference between the latest  
timestamped file and "synced.xml" and depending on what has been added or  
removed in the latest timestamped file, I update elasticsearch.

This means out of a large XML file, say 500,000 items, I only have to add  
the 10,000 or so that have changed.

Can anyone recommend a way that I can check that elasticsearch and my  
script is syncronised? In my mind I was thinking of generating a hash key  
which I add to elasticsearch and log on my script. And if they don't match  
then I know they are out of sync. That said, how do I achieve this?

Thank you for any help.

--  
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/6ea631b5-f5f4-4ff2-9182-4251cd55e387%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6ea631b5-f5f4-4ff2-9182-4251cd55e387%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, 12:18am UTC](https://discuss.elastic.co/t/adding-a-sycronisation-key-to-elasticsearch/23375/2 "2017-07-06T00:18:03Z")

</div>

Closed on July 6, 2017, 12:18am UTC


