Elastic – API integration key required

By | 24/06/2023

Last Updated on 23/10/2023 by administrator

Elastic – API integration key required

Elastic – API integration key required

Problém:

Při kliknutí přes webové rozhraní Elastic v rubrice Security > Alerts se zobrazí hláška níže:

A new encryption key is generated for saved objects each time you start Kibana. Without a persistent key, you cannot delete or modify rules after Kibana restarts. To set a persistent key, add the xpack.encryptedSavedObjects.encryptionKey setting with any text value of 32 or more characters to the kibana.yml file.

API integration key required

OS:

Implementace byla prováděna na Ubuntu 22.04 LTS pro Elasticsearch 8.8.1 ale taky prakticky na 8.10.4. Vše konkrétně otestováno přes VirtualBox 7.0.8.

Řešení problému:

Otevřít soubor kibana.yml ve složce /etc/kibana/:

vi /etc/kibana/kibana.yml

a přidat řádek níže:

xpack.encryptedSavedObjects.encryptionKey: "PGThxKFqnXtynBw3zjGCPQ7aq7tNF5xt"

Libovolně zvolit heslo pro Encryption key. Ten musí mít minimálně 32 znaků. Je možné vygenerovat náhodný encryption key zde: https://passwordsgenerator.net/

Provést restart služby Kibana:

service kibana restart

Hláška by měla zmizet:

API integration key required

Hotovo!

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *