[Solved] – Elasticsearch error – Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml

Comments Off on [Solved] – Elasticsearch error – Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml

We had problem with Kibana, the service didn’t start

While looking at the logs /var/log/kibana/kibana.log, error was identified to be with

[“warning”,”plugins”,”security”,”config”],”pid”:211619,”message”:”Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.”}

[“warning”,”plugins”,”alerting”],”pid”:211619,”message”:”APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.”}

The solution is to generate encryptionKey for xpack reporting, security and encryptedSavedObjects using kibana-encryption-keys tool

$ /usr/share/kibana/bin/kibana-encryption-keys generate

HostGator $2.75 per month
HostGator
24/7/365 Technical Support, Free Site Building Tools, 4500 Website Templates, Free Shopping Cart Software, Ideal for WordPress, 45 Day Money Back Guarantee

Copy the generated keys under Settings: and paste in kibana.yml file

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
WordPress
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month
Menu Title