# WatcherのConditionのAND,OR条件

**URL:** <https://discuss.elastic.co/t/watcher-condition-and-or/206908>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [November 7, 2019, 6:45am UTC](https://discuss.elastic.co/t/watcher-condition-and-or/206908 "2019-11-07T06:45:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshota](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sshota](https://discuss.elastic.co/u/sshota)\
**Post date:** [November 7, 2019, 6:45am UTC](https://discuss.elastic.co/t/watcher-condition-and-or/206908/1 "2019-11-07T06:45:16Z")

</div>

お世話になります。

WatcherのConditionをANDもしくはOR条件で指定したい場合は、scriptを使用するしかないのでしょうか？  
例えばcompareで2つの条件をANDもしくはORで満たす場合に、actionを実行するようにしたいです。

> 例1：項目Aが1以下、かつ項目Bの値が”RUNNING”  
> 例2：項目Cが10以上、もしくは項目Dの値が”STOP”

よろしくお願いいたします。

---

<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:** [December 5, 2019, 6:45am UTC](https://discuss.elastic.co/t/watcher-condition-and-or/206908/2 "2019-12-05T06:45:25Z")

</div>

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