# Alertingのリアルタイム検知

**URL:** <https://discuss.elastic.co/t/alerting/193925>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [August 6, 2019, 5:34am UTC](https://discuss.elastic.co/t/alerting/193925 "2019-08-06T05:34:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [August 6, 2019, 6:57am UTC](https://discuss.elastic.co/t/alerting/193925/2 "2019-08-06T06:57:35Z")

</div>

詳細には見ていませんが、下記参考になるかもしれません。

> [@Watcher - Sending x number of emails per hit](https://discuss.elastic.co/t/watcher-sending-x-number-of-emails-per-hit/128931):
>
> Hi, I'm trying to setup a watcher so that based on the number on hits in my query send out that number of emails. It seems to me that this can't be done by simply looping around the email action so I have an idea but need help on the implementation. My idea is to grab the top hit sorted by time (ascending), save that hit using an index action, and then send an email out for that hit. Also in the query will be a script query that will filter out hits that have already been alerted. ie. Compari…

---

_[View the full topic](https://discuss.elastic.co/t/alerting/193925)._
