# Alerts generation when geo-points of two index intersects

**URL:** <https://discuss.elastic.co/t/alerts-generation-when-geo-points-of-two-index-intersects/355468>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [March 15, 2024, 10:27am UTC](https://discuss.elastic.co/t/alerts-generation-when-geo-points-of-two-index-intersects/355468 "2024-03-15T10:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupa123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rupa123/32/142286_2.png) [@Rupa123](https://discuss.elastic.co/u/Rupa123)\
**Post date:** [March 15, 2024, 10:27am UTC](https://discuss.elastic.co/t/alerts-generation-when-geo-points-of-two-index-intersects/355468/1 "2024-03-15T10:27:29Z")

</div>

Hello, I want to show alerts on the map.

This thing is possible if, I create index from **kibana \> maps \> add layers \> create index** _zone_ and then **draw bounding box** and these **bounding box** are stored in index _zone_ ; and then the rule is defined for **tracking containment** where entity is _main_(this index stores live data) and boundary is _zone_ and it's tracked data is stored in index _Alert_.  
This _Alert_ maps the alert in map.

Now, what I am trying to do is I am receiving live data in _main_ and I am adding geo-point through api in index _zone_, what I want now is to show alert whenever data[geo-point] from _main_ intersects the _zone_'s geo-point under 2km radius.  
Do you think it is possible?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 16, 2024, 9:24pm UTC](https://discuss.elastic.co/t/alerts-generation-when-geo-points-of-two-index-intersects/355468/2 "2024-03-16T21:24:09Z")

</div>

You could try using [circle injest processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-circle-processor.html) to convert your zone geo points + radius into shapes. Then you could use the existing tracking containment alerting to generate alerts when main is contained by zones.

---

<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:** [April 13, 2024, 9:24pm UTC](https://discuss.elastic.co/t/alerts-generation-when-geo-points-of-two-index-intersects/355468/3 "2024-04-13T21:24:44Z")

</div>

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