# Rule status is always pending

**URL:** <https://discuss.elastic.co/t/rule-status-is-always-pending/312424>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [August 19, 2022, 3:46am UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424 "2022-08-19T03:46:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [August 19, 2022, 3:46am UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/1 "2022-08-19T03:46:36Z")

</div>

Hello World!

Via `Kibana` -\> `Management` -\> `Alerts and Insights` -\> `Rules and Connectors` - all of my rules status is always _Pending_.

per [Get Alerting framework health API | Kibana Guide [7.17] | Elastic](https://www.elastic.co/guide/en/kibana/7.17/get-alerting-framework-health-api.html#get-alerting-framework-health-api-example)

> GET /api/alerting/\_health

yet when I run it via `Dev Tools`, I get following:

```auto
#! [types removal] Specifying types in document get requests is deprecated, use the /{index}/_doc/{id} endpoint instead.
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [api]",
        "resource.type" : "index_expression",
        "resource.id" : "api",
        "index_uuid" : "_na_",
        "index" : "api"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [api]",
    "resource.type" : "index_expression",
    "resource.id" : "api",
    "index_uuid" : "_na_",
    "index" : "api"
  },
  "status" : 404
}

```

Please advise.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 19, 2022, 4:33am UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/2 "2022-08-19T04:33:22Z")

</div>

Dev tools only speaks to Elasticsearch, not Kibana. You will need to use something like Postman or curl to talk to Kibana.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [August 19, 2022, 2:53pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/3 "2022-08-19T14:53:07Z")

</div>

oh, right... my bad)) but why are rule status in pending though?

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [August 19, 2022, 3:07pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/4 "2022-08-19T15:07:11Z")

</div>

From [docs](https://www.elastic.co/guide/en/kibana/current/create-and-manage-rules.html#_rule_status):

### 

[Rule status](https://github.com/elastic/kibana/edit/8.3/docs/user/alerting/create-and-manage-rules.asciidoc)

A rule can have one of the following statuses:

`active`  
The conditions for the rule have been met, and the associated actions should be invoked.  
`ok`  
The conditions for the rule have not been met, and the associated actions are not invoked.  
`error`  
An error was encountered by the rule.  
`pending`  
The rule has not yet run. The rule was either just created, or enabled after being disabled.  
`unknown`  
A problem occurred when calculating the status. Most likely, something went wrong with the alerting code.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [August 19, 2022, 3:20pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/5 "2022-08-19T15:20:45Z")

</div>

yes, I read that part as well.. but it's been like this for several days and it still shows pending..

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [August 19, 2022, 3:58pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/6 "2022-08-19T15:58:15Z")

</div>

Created within a Kibana space?

> <https://github.com/elastic/kibana/issues/87340>
>
> \*\*Kibana version:\*\*
> 7.10.1
> 
> \*\*Elasticsearch version:\*\*
> 7.10.1
> 
> \*\*Server OS… version:\*\*
> debian 9
> 
> \*\*Browser version:\*\*
> 
> \*\*Browser OS version:\*\*
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\*
> on elastic cloud 
> 
> \*\*Describe the bug:\*\*
> When creating an alert in a space which is not the default, the alert remains in pending mode, never activated
> 
> \*\*Steps to reproduce:\*\*
> 1. create a space
> 2. create an alert in this space (basic)
> 3. the alert remains pending
> 
> \*\*Expected behavior:\*\*
> the alert should be in active mode
> 
> \*\*Screenshots (if relevant):\*\*
> !\[image\](https://user-images.githubusercontent.com/898393/103672744-01860a00-4f7d-11eb-90f9-15984bdebbef.png)
> 
> \*\*Errors in browser console (if relevant):\*\*
> 
> \*\*Provide logs and/or server output (if relevant):\*\*
> 
> \*\*Any additional context:\*\*

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [August 19, 2022, 4:11pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/7 "2022-08-19T16:11:51Z")

</div>

yes, alerts were created within the default space.

I'm running multiple Kibana instances, and noticed that if I delete all rules and re-create them in one of Kibana, the other Kibana isn't able to display monitoring at all and instead showing me these:

![Screen Shot 2022-08-19 at 12.22.35 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9b92ef2f22b6a3bd4e9cbba873acf067d424017.png)

while if there aren't any rules, monitoring app is working fine (by displaying me stats from cluster: elasticsearch, kibana and logstash)

---

<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 16, 2022, 4:12pm UTC](https://discuss.elastic.co/t/rule-status-is-always-pending/312424/8 "2022-09-16T16:12:53Z")

</div>

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