# Error activating rule (api key name is required)

**URL:** <https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237>\
**Category:** SIEM\
**Tags:** elastic-stack-alerting, detection-rules\
**Created:** [December 8, 2021, 3:33pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237 "2021-12-08T15:33:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![volundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volundr/32/98602_2.png) [@volundr](https://discuss.elastic.co/u/volundr)\
**Post date:** [December 8, 2021, 3:33pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/1 "2021-12-08T15:33:38Z")

</div>

Hi,

after following the official tutorial for enabling detection rules ([Detections (beta) | SIEM Guide [7.8] | Elastic](https://www.elastic.co/guide/en/siem/guide/current/detection-engine-overview.html)), I get the following error: _`* *[action_request_validation_exception] Validation Failed: 1: api key name is required;* *`_

 ![api_key_name_error](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b20185512553ae802275a6887d2c355f49ef7cc1.png)

What am I missing?

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Shevchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitrii_shevchenko/32/98541_2.png) [@Dmitrii\_Shevchenko](https://discuss.elastic.co/u/Dmitrii_Shevchenko)\
**Post date:** [December 8, 2021, 4:38pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/2 "2021-12-08T16:38:05Z")

</div>

Hey @volundr 👋

Would you please provide some additional information so we can help you with the issue?

1. What is your Kibana/Elasticsearch Stack version?
2. What is your installation method? Cloud or on-prem?
3. Do you see any errors in Kibana logs?

---

<div class="post-metadata">

**Author:** ![volundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volundr/32/98602_2.png) [@volundr](https://discuss.elastic.co/u/volundr)\
**Post date:** [December 9, 2021, 8:35am UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/3 "2021-12-09T08:35:03Z")

</div>

Thanks for your quick reply. Here is the info:

1. What is your Kibana/Elasticsearch Stack version?  
Kibana: 7.7 / Elasticsearch: "number" : "7.15.2"
2. What is your installation method? Cloud or on-prem?  
On-Prem
3. Do you see any errors in Kibana logs?  
 ![api_key_name_error2](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06931340a1e105e0332db3b266e02d79d992680d.png)

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Shevchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitrii_shevchenko/32/98541_2.png) [@Dmitrii\_Shevchenko](https://discuss.elastic.co/u/Dmitrii_Shevchenko)\
**Post date:** [December 9, 2021, 11:11am UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/4 "2021-12-09T11:11:26Z")

</div>

I see that you use pretty outdated Kibana, eight versions behind Elasticsearch. Generally, it's recommended to have your stack versions in sync, so I suggest upgrading Kibana to 7.15.2. Having different versions could cause all sorts of incompatibility issues. Also, please check if you have [all the prerequisites](https://www.elastic.co/guide/en/siem/guide/current/detection-engine-overview.html#detections-permissions), including `xpack.encryptedSavedObjects.encryptionKey` and `xpack.security.enabled` config opttions.

---

<div class="post-metadata">

**Author:** ![volundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volundr/32/98602_2.png) [@volundr](https://discuss.elastic.co/u/volundr)\
**Post date:** [December 9, 2021, 2:24pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/5 "2021-12-09T14:24:00Z")

</div>

Thanks Dmitrii, I'll try to upgrade Kibana first. The reason I haven't done it in the first place is because ES and Kibana are installed on a Raspberry Pi 4 and the only version I managed to install was 7.7 with NodeJS 10.19.0 ver.

I don't know what would be the corresponding NodeJS ver. for 7.15.2?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Shevchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitrii_shevchenko/32/98541_2.png) [@Dmitrii\_Shevchenko](https://discuss.elastic.co/u/Dmitrii_Shevchenko)\
**Post date:** [December 9, 2021, 2:42pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/6 "2021-12-09T14:42:36Z")

</div>

Oh, wow. You've managed to run Kibana + ES on Raspberry Pi, that's impressive 🙂

> I don't know what would be the corresponding NodeJS ver. for 7.15.2?

You'll need NodeJS v. `14.18.1`.

---

<div class="post-metadata">

**Author:** ![volundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volundr/32/98602_2.png) [@volundr](https://discuss.elastic.co/u/volundr)\
**Post date:** [December 9, 2021, 2:48pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/7 "2021-12-09T14:48:38Z")

</div>

hehe yeah, it was a bumpy road, but once you get it installed, it works like a charm to be honest, but with older Kibana (7.7) and older version of NodeJS ....

Let me try your advice and I'll see how it goes 🙂

Thanks a lot for your support.

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Shevchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitrii_shevchenko/32/98541_2.png) [@Dmitrii\_Shevchenko](https://discuss.elastic.co/u/Dmitrii_Shevchenko)\
**Post date:** [December 9, 2021, 2:57pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/8 "2021-12-09T14:57:36Z")

</div>

Sure, no problem. Good luck with upgrading!

---

<div class="post-metadata">

**Author:** ![volundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volundr/32/98602_2.png) [@volundr](https://discuss.elastic.co/u/volundr)\
**Post date:** [December 9, 2021, 4:22pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/9 "2021-12-09T16:22:56Z")

</div>

> [@Dmitrii\_Shevchenko](#):
>
> 14.18.1

Yup, this is the current issue with 14.18.1:

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/9/5/95bfec224502cac7be1bb8f13906388721dce83b.png)

node js issue I would say.

---

<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:** [January 6, 2022, 4:23pm UTC](https://discuss.elastic.co/t/error-activating-rule-api-key-name-is-required/291237/10 "2022-01-06T16:23:36Z")

</div>

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