# Need help to create a suspicious domains indicator (please)!

**URL:** <https://discuss.elastic.co/t/need-help-to-create-a-suspicious-domains-indicator-please/138735>\
**Category:** Elasticsearch\
**Created:** [July 5, 2018, 1:54pm UTC](https://discuss.elastic.co/t/need-help-to-create-a-suspicious-domains-indicator-please/138735 "2018-07-05T13:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lutundula\_jeanchris](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@lutundula\_jeanchris](https://discuss.elastic.co/u/lutundula_jeanchris)\
**Post date:** [July 5, 2018, 1:54pm UTC](https://discuss.elastic.co/t/need-help-to-create-a-suspicious-domains-indicator-please/138735/1 "2018-07-05T13:54:16Z")

</div>

Hello Everyone ,

I have been looking for a way to realize the following task :

To compare two indentical fields from the same index , but different have different dates ( data1[]= from now to now-24h) and (data2[]= from now-2days to now-30days) . basically i want to get (visualize) the result of (data1[] - data2[]) which means all the domains that are in data1[] but not in data2[] .

How can i do it ?

- Create scripting fields ??
- Create a watcher

---

<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:** [July 5, 2018, 10:07pm UTC](https://discuss.elastic.co/t/need-help-to-create-a-suspicious-domains-indicator-please/138735/2 "2018-07-05T22:07:42Z")

</div>

I have seen similar things done with a Watch. You could then take the output and put it into a new index to visualise.

Alternatively you could run the events through Logstash and use an Elasticsearch filter to do the check and tag.

---

<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:** [August 2, 2018, 10:07pm UTC](https://discuss.elastic.co/t/need-help-to-create-a-suspicious-domains-indicator-please/138735/3 "2018-08-02T22:07:44Z")

</div>

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