Hi Kibana team,
I m trying to generate encryption keyusing below command but getting error
ubuntu@host:/usr/share/kibana$ bin/kibana-encryption-keys generate
Error: ENOENT: no such file or directory, open '/usr/share/kibana/config/kibana.yml'
at Object.openSync (node:fs:585:3)
at readFileSync (node:fs:453:35)
at new EncryptionConfig (/usr/share/kibana/src/cli_encryption_keys/encryption_config.js:38:57)
at Object. (/usr/share/kibana/src/cli_encryption_keys/cli_encryption_keys.js:23:26)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:80:39)
Kindly suggest how to solve this issue. Thanks