# Is this the best way to compare and enrich two datasets?

**URL:** <https://discuss.elastic.co/t/is-this-the-best-way-to-compare-and-enrich-two-datasets/210738>\
**Category:** Logstash\
**Created:** [December 5, 2019, 3:38pm UTC](https://discuss.elastic.co/t/is-this-the-best-way-to-compare-and-enrich-two-datasets/210738 "2019-12-05T15:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetrickwolf](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@onetrickwolf](https://discuss.elastic.co/u/onetrickwolf)\
**Post date:** [December 5, 2019, 3:38pm UTC](https://discuss.elastic.co/t/is-this-the-best-way-to-compare-and-enrich-two-datasets/210738/1 "2019-12-05T15:38:01Z")

</div>

Hi I have a similar use case to this: [Compare two datasets](https://discuss.elastic.co/t/compare-two-datasets/129006/3)

However, we are an e-commerce platform and are looking to flag data from bad sellers/buyers instead of IP addresses. So we have a list of basically banned addresses, business names, etc.

We basically get a ton of logs that are submissions and shipments and payments etc and we were hoping to enrich the data to flag and visualize the suspicious stuff.

I was thinking of breaking each column into its own dictionary file then adding a new flag for each field we check (e.g. banned\_address: true, banned\_business: true).

Would doing this be the best way or is there a better way? Also as we update the dictionary files, would old data be automatically re-indexed or would we have to trigger that somehow?

I am pretty new to advanced usage of ELK so just looking for some light suggestions to get me started 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:** [January 2, 2020, 3:46pm UTC](https://discuss.elastic.co/t/is-this-the-best-way-to-compare-and-enrich-two-datasets/210738/2 "2020-01-02T15:46:27Z")

</div>

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