# How to set reporting encryption key

**URL:** <https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [July 16, 2019, 11:08am UTC](https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714 "2019-07-16T11:08:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![6tUBp3gwd9Zp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/6tubp3gwd9zp/32/45240_2.png) [@6tUBp3gwd9Zp](https://discuss.elastic.co/u/6tUBp3gwd9Zp)\
**Post date:** [July 16, 2019, 11:08am UTC](https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714/1 "2019-07-16T11:08:12Z")

</div>

Hello,

sometimes I can't export \*.csv files because of this error:  
 ![reports](https://us1.discourse-cdn.com/elastic/original/3X/3/6/3663a8b06ec3fd3adb0eb4c270dcbf68660de635.png)  
So how can I set this key from within of Kibana?  
And why does it sometimes work anyway?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 16, 2019, 1:01pm UTC](https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714/2 "2019-07-16T13:01:55Z")

</div>

Hi,  
Which version of the stack are you using? can you share more details - logs, version, steps to reproduce etc.  
By default, a new encryption key is generated for X-Pack reporting each time you start Kibana. This means if a static encryption key is not persisted in the Kibana configuration, any pending reports will fail when you restart Kibana. More details can be found here:

[https://www.elastic.co/guide/en/kibana/current/\_encryption\_keys\_for\_multiple\_kibana\_instances.html](https://www.elastic.co/guide/en/kibana/current/_encryption_keys_for_multiple_kibana_instances.html)

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![6tUBp3gwd9Zp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/6tubp3gwd9zp/32/45240_2.png) [@6tUBp3gwd9Zp](https://discuss.elastic.co/u/6tUBp3gwd9Zp)\
**Post date:** [July 17, 2019, 6:27am UTC](https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714/3 "2019-07-17T06:27:45Z")

</div>

Hi,  
thanks for the fast response.  
Current Kibana Version is 6.8.1. I have no access to the Stack itself so I can't show some logs.  
Steps to reproduce in Kibana: Discover, Share, CSV Reports, Generate CSV  
If it fails it will always fail for that time range. If I change the time range (step one week back for example) sometime this timerange works. But most of the time it fails. Reloading Kibana doesn't help. The count of hits doesn't seem to matter ether.

 ![job_info](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee31525a4c4d317a76237b2e0b1270fb979f76bf.png)

---

<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:** [August 14, 2019, 6:27am UTC](https://discuss.elastic.co/t/how-to-set-reporting-encryption-key/190714/4 "2019-08-14T06:27:48Z")

</div>

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