# Entity Centric Index

**URL:** <https://discuss.elastic.co/t/entity-centric-index/44302>\
**Category:** Elasticsearch\
**Created:** [March 14, 2016, 10:39am UTC](https://discuss.elastic.co/t/entity-centric-index/44302 "2016-03-14T10:39:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_rob](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mr\_rob](https://discuss.elastic.co/u/mr_rob)\
**Post date:** [March 14, 2016, 10:39am UTC](https://discuss.elastic.co/t/entity-centric-index/44302/1 "2016-03-14T10:39:58Z")

</div>

Looking around on this, is there a guide somewhere (noob guide) that shows how to periodically aggregate data from two sources in my default time index (logs from filebeat to logstash to elasticsearch) to a new index based on my search criteria?

eg. want to bundle up matching data from default index (2 sources) to new index that combines the 2 sources on a matching field and then feed that into Kib

but how do i do this search and create index?

thanks 1000 times

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 15, 2016, 2:43am UTC](https://discuss.elastic.co/t/entity-centric-index/44302/2 "2016-03-15T02:43:52Z")

</div>

You could use the [Elasticsearch input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html) for Logstash to grab the first doc, then use the [Elasticsearch filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html) to grab the second, then merge them accordingly.

As for scheduling, you'd have to use something external to Logstash to do that (eg cron).

---

<div class="post-metadata">

**Author:** ![mr\_rob](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mr\_rob](https://discuss.elastic.co/u/mr_rob)\
**Post date:** [March 16, 2016, 8:45am UTC](https://discuss.elastic.co/t/entity-centric-index/44302/3 "2016-03-16T08:45:08Z")

</div>

i looked at elasticsearch filter.. it could do  
need to figure out how it would merge and output a log into a new index

---

<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 5, 2017, 11:07pm UTC](https://discuss.elastic.co/t/entity-centric-index/44302/4 "2017-07-05T23:07:58Z")

</div>


