# Percolator for alerts between specific time intervals?

**URL:** https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517
**Category:** Elasticsearch
**Created:** [January 27, 2012, 3:37am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517 "2012-01-27T03:37:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vibin](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vibin](https://discuss.elastic.co/u/vibin)
#### Post date: [January 27, 2012, 3:37am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/1 "2012-01-27T03:37:32Z")

</div>

Hi,

I have been researching the Percolator feature of the ES, from which I  
understood that, this is useful for dynamic alerts or Streams(for  
every indexing of document or bulk indexing).

We have a requirement to create alerts between specific time  
intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
really interested to know if the Percolator could be used for this  
purpose.

We have a 24/7 live Indexing scheduler, indexing documents in multiple  
indices. Almost 18 million documents are created per day.

Please let me know, if I want to give any more information.

Thanks in Advance

vibin/manoj

---

<div class="post-metadata">

### Author: ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)
#### Post date: [January 27, 2012, 6:36am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/2 "2012-01-27T06:36:04Z")

</div>

Hi,

Percolator runs incoming documents (documents getting indexed) against  
stored Percolator queries as documents are being indexed (i.e. not  
periodically). However, the "interval aspect" of your requirement  
could be implemented in your application, which can use Percolator to  
find out when documents match queries, and then buffer them in  
appropriate buckets.

## Otis

> **[Sematext | IT System Monitoring Tools for DevOps](https://sematext.com/)**
>
> IT system monitoring and management tools for DevOps who need 24x7 live visibility into their infrastructure.

On Jan 26, 10:37 pm, vibin dhas [vibind...@gmail.com](mailto:vibind...@gmail.com) wrote:

> Hi,
> 
> I have been researching the Percolator feature of the ES, from which I  
> understood that, this is useful for dynamic alerts or Streams(for  
> every indexing of document or bulk indexing).
> 
> We have a requirement to create alerts between specific time  
> intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
> really interested to know if the Percolator could be used for this  
> purpose.
> 
> We have a 24/7 live Indexing scheduler, indexing documents in multiple  
> indices. Almost 18 million documents are created per day.
> 
> Please let me know, if I want to give any more information.
> 
> Thanks in Advance
> 
> vibin/manoj

---

<div class="post-metadata">

### Author: ![Michael\_Sick](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Michael\_Sick](https://discuss.elastic.co/u/Michael_Sick)
#### Post date: [January 27, 2012, 7:03am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/3 "2012-01-27T07:03:18Z")

</div>

Hi Vibin,

I've implemented a similar system in the past using custom code. We chose  
to:

1. Generate the percolation matches as documents came in
2. Persist the matches consisting of something like:  
document\_id, percolation(subscription)\_id, time\_of\_match,  
delivery\_status  
3a) Deliver real-time events immediately  
3b) Invoke a query for any matches for the given subscription\_id from a  
scheduler (quartz or whatever you prefer)

I believe I'd do the same thing with ES if I was using percolation. I've  
been rethinking it as we may implement one in the coming weeks.

--Mike

On Thu, Jan 26, 2012 at 10:37 PM, vibin dhas [vibindhas@gmail.com](mailto:vibindhas@gmail.com) wrote:

> Hi,
> 
> I have been researching the Percolator feature of the ES, from which I  
> understood that, this is useful for dynamic alerts or Streams(for  
> every indexing of document or bulk indexing).
> 
> We have a requirement to create alerts between specific time  
> intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
> really interested to know if the Percolator could be used for this  
> purpose.
> 
> We have a 24/7 live Indexing scheduler, indexing documents in multiple  
> indices. Almost 18 million documents are created per day.
> 
> Please let me know, if I want to give any more information.
> 
> Thanks in Advance
> 
> vibin/manoj

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 27, 2012, 8:53pm UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/4 "2012-01-27T20:53:43Z")

</div>

Another option might be the simplest one, which is to poll for changes that happened in the given time span you are interested in. Filters can make this part really fast as they are nicely cached.

On Friday, January 27, 2012 at 9:03 AM, Michael Sick wrote:

> Hi Vibin,
> 
> I've implemented a similar system in the past using custom code. We chose to:
> 
> 1. Generate the percolation matches as documents came in
> 2. Persist the matches consisting of something like:  
> document\_id, percolation(subscription)\_id, time\_of\_match, delivery\_status  
> 3a) Deliver real-time events immediately  
> 3b) Invoke a query for any matches for the given subscription\_id from a scheduler (quartz or whatever you prefer)
> 
> I believe I'd do the same thing with ES if I was using percolation. I've been rethinking it as we may implement one in the coming weeks.
> 
> --Mike
> 
> On Thu, Jan 26, 2012 at 10:37 PM, vibin dhas \<[vibindhas@gmail.com](mailto:vibindhas@gmail.com) ([mailto:vibindhas@gmail.com](mailto:vibindhas@gmail.com))\> wrote:
> 
> > Hi,
> > 
> > I have been researching the Percolator feature of the ES, from which I  
> > understood that, this is useful for dynamic alerts or Streams(for  
> > every indexing of document or bulk indexing).
> > 
> > We have a requirement to create alerts between specific time  
> > intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
> > really interested to know if the Percolator could be used for this  
> > purpose.
> > 
> > We have a 24/7 live Indexing scheduler, indexing documents in multiple  
> > indices. Almost 18 million documents are created per day.
> > 
> > Please let me know, if I want to give any more information.
> > 
> > Thanks in Advance
> > 
> > vibin/manoj

---

<div class="post-metadata">

### Author: ![vibin](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vibin](https://discuss.elastic.co/u/vibin)
#### Post date: [January 31, 2012, 4:27am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/5 "2012-01-31T04:27:07Z")

</div>

Great got it...Still I have a doubt

Does Polling for changes in the indices and Hitting the indices with  
search(with filter) at specific time intervals, will have same  
performance?

On Jan 28, 1:53 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Another option might be the simplest one, which is to poll for changes that happened in the given time span you are interested in. Filters can make this part really fast as they are nicely cached.
> 
> On Friday, January 27, 2012 at 9:03 AM, Michael Sick wrote:
> 
> > Hi Vibin,
> 
> > I've implemented a similar system in the past using custom code. We chose to:
> > 
> > 1. Generate the percolation matches as documents came in
> > 2. Persist the matches consisting of something like:  
> > document\_id, percolation(subscription)\_id, time\_of\_match, delivery\_status  
> > 3a) Deliver real-time events immediately  
> > 3b) Invoke a query for any matches for the given subscription\_id from a scheduler (quartz or whatever you prefer)
> 
> > I believe I'd do the same thing with ES if I was using percolation. I've been rethinking it as we may implement one in the coming weeks.
> 
> > --Mike
> 
> > On Thu, Jan 26, 2012 at 10:37 PM, vibin dhas \<[vibind...@gmail.com](mailto:vibind...@gmail.com) ([mailto:vibind...@gmail.com](mailto:vibind...@gmail.com))\> wrote:
> > 
> > > Hi,
> 
> > > I have been researching the Percolator feature of the ES, from which I  
> > > understood that, this is useful for dynamic alerts or Streams(for  
> > > every indexing of document or bulk indexing).
> 
> > > We have a requirement to create alerts between specific time  
> > > intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
> > > really interested to know if the Percolator could be used for this  
> > > purpose.
> 
> > > We have a 24/7 live Indexing scheduler, indexing documents in multiple  
> > > indices. Almost 18 million documents are created per day.
> 
> > > Please let me know, if I want to give any more information.
> 
> > > Thanks in Advance
> 
> > > vibin/manoj

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2012, 5:38pm UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/6 "2012-01-31T17:38:23Z")

</div>

Searching (with a filter) is what I meant by polling for changes.

On Tuesday, January 31, 2012 at 6:27 AM, vibin dhas wrote:

> Great got it...Still I have a doubt
> 
> Does Polling for changes in the indices and Hitting the indices with  
> search(with filter) at specific time intervals, will have same  
> performance?
> 
> On Jan 28, 1:53 am, Shay Banon \<[kim...@gmail.com](mailto:kim...@gmail.com) ([http://gmail.com](http://gmail.com))\> wrote:
> 
> > Another option might be the simplest one, which is to poll for changes that happened in the given time span you are interested in. Filters can make this part really fast as they are nicely cached.
> > 
> > On Friday, January 27, 2012 at 9:03 AM, Michael Sick wrote:
> > 
> > > Hi Vibin,
> > 
> > > I've implemented a similar system in the past using custom code. We chose to:
> > > 
> > > 1. Generate the percolation matches as documents came in
> > > 2. Persist the matches consisting of something like:  
> > > document\_id, percolation(subscription)\_id, time\_of\_match, delivery\_status  
> > > 3a) Deliver real-time events immediately  
> > > 3b) Invoke a query for any matches for the given subscription\_id from a scheduler (quartz or whatever you prefer)
> > 
> > > I believe I'd do the same thing with ES if I was using percolation. I've been rethinking it as we may implement one in the coming weeks.
> > 
> > > --Mike
> > 
> > > On Thu, Jan 26, 2012 at 10:37 PM, vibin dhas \<[vibind...@gmail.com](mailto:vibind...@gmail.com) ([mailto:vibind...@gmail.com](mailto:vibind...@gmail.com) ([http://gmail.com](http://gmail.com)))\> wrote:
> > > 
> > > > Hi,
> > 
> > > > I have been researching the Percolator feature of the ES, from which I  
> > > > understood that, this is useful for dynamic alerts or Streams(for  
> > > > every indexing of document or bulk indexing).
> > 
> > > > We have a requirement to create alerts between specific time  
> > > > intervals. For Eg: Once in 10mins, Once in an Hr, Once in a day. I am  
> > > > really interested to know if the Percolator could be used for this  
> > > > purpose.
> > 
> > > > We have a 24/7 live Indexing scheduler, indexing documents in multiple  
> > > > indices. Almost 18 million documents are created per day.
> > 
> > > > Please let me know, if I want to give any more information.
> > 
> > > > Thanks in Advance
> > 
> > > > vibin/manoj

---

<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 6, 2017, 3:40am UTC](https://discuss.elastic.co/t/percolator-for-alerts-between-specific-time-intervals/6517/7 "2017-07-06T03:40:57Z")

</div>


