# Rulesets Troubleshooting

Diagnose why event rules aren't triggering, from misconfigured integration keys to incorrect field names and rule ordering.


> **End-of-Life:** Rulesets and Event Rules reached end-of-life on January 31, 2025 and are no longer visible in the PagerDuty web app. We highly recommend that you [migrate to Event Orchestration](/ai-automation/aiops/migrate-to-event-orchestration). Access and modifications to event rules are still possible via the [API](/developer/global-event-rules-api).

## None of Your Rules Are Working

This may be because you have not set up the integration key correctly in your monitoring tool. For event rules to work, you must use the integration key for the event rules you have configured. 

**Service Event Rules **: You will find your integration key in the PagerDuty web app by navigating to **Services**  →  **Service Directory**  →  click the **name** of the service that has your desired event rule configured  →  select the **Integrations** tab. You will see your **integration key** to the right of the integration’s name. 

**Global Rulesets**: You can view a ruleset's routing key by making a request to the [Get a Ruleset](/developer/api/reference/rest/rulesets/get-ruleset) endpoint.

If you are sending events through the Events API, use this integration key in the `service_key` field ([Events API V1](/developer/events-api-v1-overview)) or the `routing_key` field ([Events API V2](/developer/events-api-v2-overview)).

## One of Your Rules Is Not Working

This may be because you have not entered the field name correctly in the rule conditions. The field name is based on the data that is sent to PagerDuty, and _is not necessarily the same as the field name visible in the alert or incident in PagerDuty_. Refer to the data in your monitoring tool or integration for the correct field name.

For nested fields, format the field name with periods separating each level. For example, `field_group.sub_field.another_sub_field`.

If you have confirmed your field names are set up correctly, you may have a rule that is too broad that is ordered before the rule that is not working. Re-order your rules so that more specific rules are listed first. 

You may also want to check for rules with negative conditions ("does not contain" or "does not equal"), as these rules can match many events that do not contain the specified field. 

For nested fields, format the field name with periods separating each level of the object path. For example, `field_group.sub_field.another_sub_field`.
