# Enable / Disable anonymous usage statistics by default?

**URL:** <https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778>\
**Category:** Kibana\
**Created:** [January 13, 2020, 8:47am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778 "2020-01-13T08:47:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [January 13, 2020, 8:47am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/1 "2020-01-13T08:47:25Z")

</div>

Hi,

Is there a way to enable / disable anonymous usage statistics in kibana by configuration, so that no one has to answer this question manually?  
Any variable in kibana.yml?

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [January 14, 2020, 4:36am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/2 "2020-01-14T04:36:47Z")

</div>

hello @asp - [https://www.elastic.co/guide/en/kibana/current/settings.html](https://www.elastic.co/guide/en/kibana/current/settings.html) - look for `telemetry` - I think you'll find what you need.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [January 14, 2020, 7:19am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/3 "2020-01-14T07:19:30Z")

</div>

Hey @mattkime, thanks for your reply.

I added the following to kibana.yml

```
# configure Telemetry
telemetry.allowChangingOptInStatus: false
telemetry.optIn: false
telemetry.enabled: false

```

But kibana is not starting anymore, showing me the following errors:

`{"type":"log","@timestamp":"2020-01-14T07:18:37Z","tags":["fatal","root"],"pid":20059,"message":"{ Error: \"telemetry.allowChangingOptInStatus\", \"telemetry.optIn\", and \"telemetry.enabled\" settings were not applied. Check for spelling errors and ensure that expected plugins are installed.\n at KbnServer._default (/usr/share/kibana/src/legacy/server/config/complete.js:90:17) code: 'InvalidConfig', processExitCode: 64 }"}`

Any idea?  
Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [January 14, 2020, 7:26am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/4 "2020-01-14T07:26:14Z")

</div>

ok, I've overseen that `telemetry.allowChangingOptInStatus` and `telemetry.optIn` must not be false at the same time.

I also tried just to set `telemetry.enabled: false` and commented out the other ones, but I still get the error

`{"type":"log","@timestamp":"2020-01-14T07:26:52Z","tags":["fatal","root"],"pid":29366,"message":"{ Error: \"telemetry.enabled\" setting was not applied. Check for spelling errors and ensure that expected plugins are installed.\n at KbnServer._default (/usr/share/kibana/src/legacy/server/config/complete.js:90:17) code: 'InvalidConfig', processExitCode: 64 }"}`

Using kibana 7.4.1

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [January 14, 2020, 11:10pm UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/5 "2020-01-14T23:10:15Z")

</div>

It appears that the setting was introduced in v7.5 as its not documented in v7.4 - [https://www.elastic.co/guide/en/kibana/7.4/settings.html](https://www.elastic.co/guide/en/kibana/7.4/settings.html)

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [January 15, 2020, 6:21am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/6 "2020-01-15T06:21:13Z")

</div>

Ah great, thanks a lot. Then I will checkout 7.5 as soon as I can.

Thanks, Andreas

---

<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:** [February 12, 2020, 6:21am UTC](https://discuss.elastic.co/t/enable-disable-anonymous-usage-statistics-by-default/214778/7 "2020-02-12T06:21:13Z")

</div>

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