# Fault trees?

**URL:** <https://discuss.elastic.co/t/fault-trees/161576>\
**Category:** Kibana\
**Created:** [December 19, 2018, 6:00pm UTC](https://discuss.elastic.co/t/fault-trees/161576 "2018-12-19T18:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomuserid](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@randomuserid](https://discuss.elastic.co/u/randomuserid)\
**Post date:** [December 19, 2018, 6:00pm UTC](https://discuss.elastic.co/t/fault-trees/161576/1 "2018-12-19T18:00:38Z")

</div>

Is there a way to do this logic either in lucene - in Kibana - or in elastic search natively?

1. Where there are _n_ or more events, in the blue index, where the value of field _f_ is the same?

2. Where there are _n_ or more events, in both the blue and the green index, where the value of field _f_ is the same?

e.g. multiple events from the same source IP; or targeting the same destination IP; or events from different indexes with the same sort of field agreement.

Also what about this?

Where event one has a destination address "_d_" that is equal to the source address "_s_" in another event, in the same index, or in a different index.

The use case is for making certain kinds of correlated security alerts.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [December 19, 2018, 8:17pm UTC](https://discuss.elastic.co/t/fault-trees/161576/2 "2018-12-19T20:17:24Z")

</div>

Am tagging a dev engineer here whoo is more comfortable with Lucene Kibana queries than I'am. Response may be delayed due to holiday season. @timroes can you please help here when you get time.

Thanks  
Rashmi

---

<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 16, 2019, 8:17pm UTC](https://discuss.elastic.co/t/fault-trees/161576/3 "2019-01-16T20:17:26Z")

</div>

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