# Kibana起動時にwarningがでます。(windows zip環境)

**URL:** <https://discuss.elastic.co/t/kibana-warning-windows-zip/221828>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [March 3, 2020, 8:04am UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828 "2020-03-03T08:04:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knm](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@knm](https://discuss.elastic.co/u/knm)\
**Post date:** [March 3, 2020, 8:04am UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828/1 "2020-03-03T08:04:14Z")

</div>

kibana7.6.0起動時に下記のようなwarningがでます。  
(windows環境)

> log [07:55:13.383] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml

> log [07:55:13.403] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml

> log [07:55:13.404] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.

> log [07:55:16.478] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml

 ![warning](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a28ba07d8baa133f02328c544569b5947f305416.png)

おそらく、x-packを有効にしていないのが原因だと思いますが、  
設定方法などが記載されたドキュメントなどございましたら、  
ご教授いただけると嬉しいです。

---

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [March 3, 2020, 1:00pm UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828/2 "2020-03-03T13:00:20Z")

</div>

こんにちわ

状況から、Security機能を有効にした状態でKibanaを起動されているものと推察します。

`xpack.security.encryptionKey`については、以下のURLで指定してくださいと書いてあるので、  
指定することで、警告は消えるものと思います。

> **[Configure security in Kibana | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html)**

> 1. Set the `xpack. security.encryptionKey` property in the `kibana.yml` configuration file.

項目の中身の詳細は、こちらに記載があります。

> **[Security settings in Kibana | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html)**

こちらの質問が類似の例かと思います。

> [@Getting warning](https://discuss.elastic.co/t/getting-warning/213676/2):
>
> Hi, I can see that your Kibana is up. For these kinda logs to go away - all you need to do is - set the keys in kibana.yml log [07:51:16.096] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml [https://www.elastic.co/guide/en/kibana/current/settings.html](https://www.elastic.co/guide/en/kibana/current/settings.html) Thanks, Bhavya

reportの方も同じようにキーを設定することになるかと思いますが、ドキュメントとしてはこちらになりますでしょうか。

> **[Reporting settings in Kibana | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/reporting-settings-kb.html)**

`Session cookies will be transmitted over insecure connections. `の箇所ですが、  
Securityを有効にしている状態で、httpsでなくhttpで動かしている、ということではないでしょうか？httpsにすれば解消しませんか？

ご参考になれば幸いです。

---

<div class="post-metadata">

**Author:** ![knm](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@knm](https://discuss.elastic.co/u/knm)\
**Post date:** [March 4, 2020, 4:11am UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828/3 "2020-03-04T04:11:21Z")

</div>

ご回答ありがとうございました。  
x-packは7.6.0では標準でインストールされているみたいですね。  
ドキュメントも確認いたします。

---

<div class="post-metadata">

**Author:** ![knm](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@knm](https://discuss.elastic.co/u/knm)\
**Post date:** [March 6, 2020, 2:42am UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828/4 "2020-03-06T02:42:49Z")

</div>

こちらのgithubの設定で実行したところ、特にエラーもなく起動するようになりました。  
ありがとうございました。

> **[deviantony/docker-elk](https://github.com/deviantony/docker-elk)**
>
> The ELK stack powered by Docker and Compose. Contribute to deviantony/docker-elk development by creating an account on GitHub.

---

<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:** [April 3, 2020, 2:43am UTC](https://discuss.elastic.co/t/kibana-warning-windows-zip/221828/5 "2020-04-03T02:43:36Z")

</div>

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