# How to diff two log-indices

**URL:** <https://discuss.elastic.co/t/how-to-diff-two-log-indices/18573>\
**Category:** Elasticsearch\
**Created:** [July 10, 2014, 9:27am UTC](https://discuss.elastic.co/t/how-to-diff-two-log-indices/18573 "2014-07-10T09:27:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_Pletzer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valentin_pletzer/32/105548_2.png) [@Valentin\_Pletzer](https://discuss.elastic.co/u/Valentin_Pletzer)\
**Post date:** [July 10, 2014, 9:27am UTC](https://discuss.elastic.co/t/how-to-diff-two-log-indices/18573/1 "2014-07-10T09:27:28Z")

</div>

Hi,

I have daily indices with log-data. What I would like to do, is to get an  
terms aggregation but not a simple occurrence-count but to substract 1 for  
day (index) one and to add 1 for day (index) two. So in the end I  
theoretically get all the new terms and the ones with the biggest change. I  
guess this could be done with a script, but I have no idea how.

Any ideas?

Regards,  
Valentin

--  
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/5b58198a-c08e-41be-9191-cfb97adbd4db%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5b58198a-c08e-41be-9191-cfb97adbd4db%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:16am UTC](https://discuss.elastic.co/t/how-to-diff-two-log-indices/18573/2 "2017-07-06T01:16:51Z")

</div>

Closed on July 6, 2017, 1:16am UTC


