# Watcher triggerを待たずに検知

**URL:** <https://discuss.elastic.co/t/watcher-trigger/194344>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [August 8, 2019, 2:24am UTC](https://discuss.elastic.co/t/watcher-trigger/194344 "2019-08-08T02:24:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harue](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@harue](https://discuss.elastic.co/u/harue)\
**Post date:** [August 8, 2019, 2:24am UTC](https://discuss.elastic.co/t/watcher-trigger/194344/1 "2019-08-08T02:24:34Z")

</div>

Watcherの定義について教えてください。  
①の定義を②に変更できますでしょうか？

①ログの監視間隔を5分、条件に合致したインデックス件数が2件以上の場合に発報

Watcher設定値  
{  
"trigger": {  
"schedule": {  
"interval": "5m"  
}  
}  
…  
"condition": {  
"compare": {  
"ctx.payload.hits.total": {  
"gt": 2  
}  
}  
},

②5分未満でも2件以上のインデックスが発生した場合に発報  
triggerの間隔を待たずに発報することが出来るのでしょうか…

分かる方がいらっしゃいましたら教えてください。

---

<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 5, 2019, 2:24am UTC](https://discuss.elastic.co/t/watcher-trigger/194344/2 "2019-09-05T02:24:49Z")

</div>

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