# Percolator Question

**URL:** <https://discuss.elastic.co/t/percolator-question/22523>\
**Category:** Elasticsearch\
**Created:** [March 4, 2015, 11:42pm UTC](https://discuss.elastic.co/t/percolator-question/22523 "2015-03-04T23:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Malcolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_malcolm/32/44776_2.png) [@Nick\_Malcolm](https://discuss.elastic.co/u/Nick_Malcolm)\
**Post date:** [March 4, 2015, 11:42pm UTC](https://discuss.elastic.co/t/percolator-question/22523/1 "2015-03-04T23:42:30Z")

</div>

Hi there,

We want to do more with the data we're indexing, so that we can do some  
real-time anomaly detection. We've been looking at the percolator feature  
as a simple starting point, but I just want to get an idea of if what I'm  
asking is possible.

We want a stored query that will match when a document comes through, and  
is e.g. "the 10th delete request performed by user Foo in the last two  
days!". For documents like {user: "foo", action: "delete", object:  
"deletedthing"}.

Can Percolator queries do that - look at more than just the document coming  
through? Is there a good example or tutorial around that? Should we be  
looking at something else for this kind of data analysis?

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4ad43d5b-74f2-4a4f-9cb3-dac3b3eff694%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4ad43d5b-74f2-4a4f-9cb3-dac3b3eff694%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:28am UTC](https://discuss.elastic.co/t/percolator-question/22523/2 "2017-07-06T00:28:27Z")

</div>

Closed on July 6, 2017, 12:28am UTC


