# If custom events have been created for a disk under "Custom disk detection rule" and also under "Custom events for alerting", will all the rules be connected by OR operation or AND operation?

**URL:** <https://community.dynatrace.com/t/if-custom-events-have-been-created-for-a-disk-under-custom-disk-detection-rule-and-also-under-custom-events-for-alerting-will-all-the-rules-be-connected-by-or-operation-or-and-operation/21585>\
**Category:** Alerting\
**Tags:** problem-detection, hosts-classic\
**Created:** [February 24, 2021, 3:03pm UTC](https://community.dynatrace.com/t/if-custom-events-have-been-created-for-a-disk-under-custom-disk-detection-rule-and-also-under-custom-events-for-alerting-will-all-the-rules-be-connected-by-or-operation-or-and-operation/21585 "2021-02-24T15:03:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BHA5472](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@BHA5472](https://community.dynatrace.com/u/BHA5472)\
**Post date:** [February 24, 2021, 3:03pm UTC](https://community.dynatrace.com/t/if-custom-events-have-been-created-for-a-disk-under-custom-disk-detection-rule-and-also-under-custom-events-for-alerting-will-all-the-rules-be-connected-by-or-operation-or-and-operation/21585/1 "2021-02-24T15:03:32Z")

</div>

If custom events have been created for a disk under “Custom disk detection rule” and also under “Custom events for alerting”, will all the rules be connected by OR operation or AND operation? Say I have both these rules below for same disk, one when free space is less than 40% and the other if free space is less than 20%.

 ![28361-custom-rule.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/6/b61c3474219f396172490b7169323b3944e52d85.png)

Then, for same disk, I have two rules under “Custom events for alerting” which use Disk used % metric and uses 70% and 90% thresholds:

 ![28348-custom-events.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/af441ead8d1bcdfcdadc032ed80a0e0796031ebd.png)  
Would I get 4 problems or would it be overridden by one another? If overridden, how? What is the logic behind?

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [February 24, 2021, 3:12pm UTC](https://community.dynatrace.com/t/if-custom-events-have-been-created-for-a-disk-under-custom-disk-detection-rule-and-also-under-custom-events-for-alerting-will-all-the-rules-be-connected-by-or-operation-or-and-operation/21585/2 "2021-02-24T15:12:47Z")

</div>

Its an OR. All those configs are independent of each other.

---

<div class="post-metadata">

**Author:** ![BHA5472](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@BHA5472](https://community.dynatrace.com/u/BHA5472)\
**Post date:** [February 24, 2021, 3:14pm UTC](https://community.dynatrace.com/t/if-custom-events-have-been-created-for-a-disk-under-custom-disk-detection-rule-and-also-under-custom-events-for-alerting-will-all-the-rules-be-connected-by-or-operation-or-and-operation/21585/3 "2021-02-24T15:14:43Z")

</div>

So, how many problems would be generated?
