# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t-nakata](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@t-nakata](https://discuss.elastic.co/u/t-nakata)\
**Post date:** [August 6, 2019, 5:34am UTC](https://discuss.elastic.co/t/alerting/193925/1 "2019-08-06T05:34:23Z")

</div>

同一のAlertingの定義内で、Alerting対象を複数検知した場合、検知した数分のメールを送信することは可能ですか？

例えば、過去10分以内のログを検索し、対象が10件以上存在したらメールを送信するという定義をWatcherのAlertingで設定した場合(trigger.schedule.intervalを10分に設定)、過去10分以内に対象が20件あったら、メールも20件送信したいです。

---

<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…

---

<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:** [September 3, 2019, 6:57am UTC](https://discuss.elastic.co/t/alerting/193925/3 "2019-09-03T06:57:39Z")

</div>

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