# Setup mode is not available You do not have the necessary permissions to do this

**URL:** <https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring\
**Created:** [August 19, 2020, 3:25pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635 "2020-08-19T15:25:25Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [August 24, 2020, 4:13pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/22 "2020-08-24T16:13:40Z")

</div>

Hi @Yogesh_Kumar1,

Could you run the following query against your monitoring cluster (`Y.Y.Y.Y:9200`) please? It's a slight variation of the query @chrisronline asked to run earlier. It will also show us when the monitoring data was last collected and into what indices:

```auto
POST .monitoring-es*/_search
{
  "size": 0,
  "aggs": {
    "by_cluster_uuid": {
      "terms": {
        "field": "cluster_uuid",
        "size": 10,
        "missing": "STANDALONE"
      },
      "aggs": {
        "by_doc_type": {
          "terms": {
            "field": "type",
            "size": 20
          },
          "aggs": {
            "by_index": {
              "terms": {
                "field": "_index",
                "size": 10
              },
              "aggs": {
                "latest_timestamp": {
                  "max": {
                    "field": "timestamp"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

```

Also, could you please post the results of the following Elasticsearch API calls made against the same cluster?

```auto
GET _cat/indices/.monitoring-es*

```

and

```auto
GET _template/.monitoring-es

```

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 24, 2020, 4:22pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/23 "2020-08-24T16:22:53Z")

</div>

> [@shaunak](#):
>
> ```auto
> {
> "size": 0,
> "aggs": {
> "by_cluster_uuid": {
> "terms": {
> "field": "cluster_uuid",
> "size": 10,
> "missing": "STANDALONE"
> },
> "aggs": {
> "by_doc_type": {
> "terms": {
> "field": "type",
> "size": 20
> },
> "aggs": {
> "by_index": {
> "terms": {
> "field": "_index",
> "size": 10
> },
> "aggs": {
> "latest_timestamp": {
> "max": {
> "field": "timestamp"
> }
> }
> }
> }
> }
> }
> }
> }
> }
> }
> 
> ```

curl -XPOST [http://Y.Y.Y.Y:9200/.monitoring-es\*/\_search?pretty](http://Y.Y.Y.Y:9200/.monitoring-es*/_search?pretty) -H 'Content-Type: application/json' -d'

> {  
> "size": 0,  
> "aggs": {  
> "by\_cluster\_uuid": {  
> "terms": {  
> "field": "cluster\_uuid",  
> "size": 10,  
> "missing": "STANDALONE"  
> },  
> "aggs": {  
> "by\_doc\_type": {  
> "terms": {  
> "field": "type",  
> "size": 20  
> },  
> "aggs": {  
> "by\_index": {  
> "terms": {  
> "field": "\_index",  
> "size": 10  
> },  
> "aggs": {  
> "latest\_timestamp": {  
> "max": {  
> "field": "timestamp"  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> }'  
> {  
> "took" : 256,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 1,  
> "successful" : 1,  
> "skipped" : 0,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : {  
> "value" : 828,  
> "relation" : "eq"  
> },  
> "max\_score" : null,  
> "hits" :   
> },  
> "aggregations" : {  
> "by\_cluster\_uuid" : {  
> "doc\_count\_error\_upper\_bound" : 0,  
> "sum\_other\_doc\_count" : 0,  
> "buckets" : [  
> {  
> "key" : "jNLcalI1SdSRpFJws2PqEw",  
> "doc\_count" : 828,  
> "by\_doc\_type" : {  
> "doc\_count\_error\_upper\_bound" : 0,  
> "sum\_other\_doc\_count" : 0,  
> "buckets" : [  
> {  
> "key" : "node\_stats",  
> "doc\_count" : 828,  
> "by\_index" : {  
> "doc\_count\_error\_upper\_bound" : 0,  
> "sum\_other\_doc\_count" : 0,  
> "buckets" : [  
> {  
> "key" : ".monitoring-es-7-mb-2020.08.24",  
> "doc\_count" : 828,  
> "latest\_timestamp" : {  
> "value" : 1.598285705454E12,  
> "value\_as\_string" : "2020-08-24T16:15:05.454Z"  
> }  
> }  
> ]  
> }  
> }  
> ]  
> }  
> }  
> ]  
> }  
> }  
> }

curl -XGET '[http://Y.Y.Y.Y:9200/\_cat/indices/.monitoring-es\*?pretty](http://Y.Y.Y.Y:9200/_cat/indices/.monitoring-es*?pretty)'  
green open .monitoring-es-7-mb-2020.08.24 dO540sfYRWCreoFgyeTbdA 1 0 831 0 818.9kb 818.9kb

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 24, 2020, 4:23pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/24 "2020-08-24T16:23:53Z")

</div>

curl -XGET '[http://Y.Y.Y.Y:9200/\_template/.monitoring-es](http://Y.Y.Y.Y:9200/_template/.monitoring-es)'  
{".monitoring-es":{"order":0,"version":7000199,"index\_patterns":[".monitoring-es-7-\*"],"settings":{"index":{"format":"7","codec":"best\_compression","number\_of\_shards":"1","auto\_expand\_replicas":"0-1","number\_of\_replicas":"0"}},"mappings":{"date\_detection":false,"dynamic":false,"properties":{"cluster\_uuid":{"type":"keyword"},"state\_uuid":{"type":"keyword"},"timestamp":{"type":"date","format":"date\_time"},"interval\_ms":{"type":"long"},"type":{"type":"keyword"},"source\_node":{"properties":{"uuid":{"type":"keyword"},"host":{"type":"keyword"},"transport\_address":{"type":"keyword"},"ip":{"type":"keyword"},"name":{"type":"keyword"},"timestamp":{"type":"date","format":"date\_time"}}},"indices\_stats":{"properties":{"\_all":{"properties":{"primaries":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"indexing":{"properties":{"index\_total":{"type":"long"},"index\_time\_in\_millis":{"type":"long"}}},"search":{"properties":{"query\_total":{"type":"long"},"query\_time\_in\_millis":{"type":"long"}}}}},"total":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"indexing":{"properties":{"index\_total":{"type":"long"},"index\_time\_in\_millis":{"type":"long"}}},"search":{"properties":{"query\_total":{"type":"long"},"query\_time\_in\_millis":{"type":"long"}}}}}}}}},"index\_stats":{"properties":{"index":{"type":"keyword"},"primaries":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"}}},"store":{"properties":{"size\_in\_bytes":{"type":"long"}}},"indexing":{"properties":{"index\_total":{"type":"long"},"index\_time\_in\_millis":{"type":"long"},"throttle\_time\_in\_millis":{"type":"long"}}},"merges":{"properties":{"total\_size\_in\_bytes":{"type":"long"}}},"query\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"request\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"search":{"properties":{"query\_total":{"type":"long"},"query\_time\_in\_millis":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory\_in\_bytes":{"type":"long"},"terms\_memory\_in\_bytes":{"type":"long"},"points\_memory\_in\_bytes":{"type":"long"},"stored\_fields\_memory\_in\_bytes":{"type":"long"},"term\_vectors\_memory\_in\_bytes":{"type":"long"},"norms\_memory\_in\_bytes":{"type":"long"},"doc\_values\_memory\_in\_bytes":{"type":"long"},"index\_writer\_memory\_in\_bytes":{"type":"long"},"version\_map\_memory\_in\_bytes":{"type":"long"},"fixed\_bit\_set\_memory\_in\_bytes":{"type":"long"}}},"refresh":{"properties":{"total\_time\_in\_millis":{"type":"long"}}}}},"total":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"}}},"store":{"properties":{"size\_in\_bytes":{"type":"long"}}},"indexing":{"properties":{"index\_total":{"type":"long"},"index\_time\_in\_millis":{"type":"long"},"throttle\_time\_in\_millis":{"type":"long"}}},"merges":{"properties":{"total\_size\_in\_bytes":{"type":"long"}}},"query\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"request\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"search":{"properties":{"query\_total":{"type":"long"},"query\_time\_in\_millis":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory\_in\_bytes":{"type":"long"},"terms\_memory\_in\_bytes":{"type":"long"},"points\_memory\_in\_bytes":{"type":"long"},"stored\_fields\_memory\_in\_bytes":{"type":"long"},"term\_vectors\_memory\_in\_bytes":{"type":"long"},"norms\_memory\_in\_bytes":{"type":"long"},"doc\_values\_memory\_in\_bytes":{"type":"long"},"index\_writer\_memory\_in\_bytes":{"type":"long"},"version\_map\_memory\_in\_bytes":{"type":"long"},"fixed\_bit\_set\_memory\_in\_bytes":{"type":"long"}}},"refresh":{"properties":{"total\_time\_in\_millis":{"type":"long"}}}}}}},"cluster\_stats":{"properties":{"nodes":{"type":"object"},"indices":{"type":"object"}}},"cluster\_state":{"properties":{"version":{"type":"long"},"nodes\_hash":{"type":"integer"},"master\_node":{"type":"keyword"},"state\_uuid":{"type":"keyword"},"status":{"type":"keyword"},"nodes":{"type":"object"},"shards":{"type":"object"}}},"node\_stats":{"properties":{"node\_id":{"type":"keyword"},"node\_master":{"type":"boolean"},"mlockall":{"type":"boolean"},"indices":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"}}},"indexing":{"properties":{"index\_time\_in\_millis":{"type":"long"},"index\_total":{"type":"long"},"throttle\_time\_in\_millis":{"type":"long"}}},"query\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"request\_cache":{"properties":{"memory\_size\_in\_bytes":{"type":"long"},"evictions":{"type":"long"},"hit\_count":{"type":"long"},"miss\_count":{"type":"long"}}},"search":{"properties":{"query\_time\_in\_millis":{"type":"long"},"query\_total":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory\_in\_bytes":{"type":"long"},"terms\_memory\_in\_bytes":{"type":"long"},"points\_memory\_in\_bytes":{"type":"long"},"stored\_fields\_memory\_in\_bytes":{"type":"long"},"term\_vectors\_memory\_in\_bytes":{"type":"long"},"norms\_memory\_in\_bytes":{"type":"long"},"doc\_values\_memory\_in\_bytes":{"type":"long"},"index\_writer\_memory\_in\_bytes":{"type":"long"},"version\_map\_memory\_in\_bytes":{"type":"long"},"fixed\_bit\_set\_memory\_in\_bytes":{"type":"long"}}},"store":{"properties":{"size\_in\_bytes":{"type":"long"}}}}},"fs":{"properties":{"total":{"properties":{"total\_in\_bytes":{"type":"long"},"free\_in\_bytes":{"type":"long"},"available\_in\_bytes":{"type":"long"}}},"data":{"properties":{"spins":{"type":"boolean"}}},"io\_stats":{"properties":{"total":{"properties":{"operations":{"type":"long"},"read\_operations":{"type":"long"},"write\_operations":{"type":"long"},"read\_kilobytes":{"type":"long"},"write\_kilobytes":{"type":"long"}}}}}}},"os":{"properties":{"cgroup":{"properties":{"cpuacct":{"properties":{"control\_group":{"type":"keyword"},"usage\_nanos":{"type":"long"}}},"cpu":{"properties":{"cfs\_quota\_micros":{"type":"long"},"control\_group":{"type":"keyword"},"stat":{"properties":{"number\_of\_elapsed\_periods":{"type":"long"},"number\_of\_times\_throttled":{"type":"long"},"time\_throttled\_nanos":{"type":"long"}}}}},"memory":{"properties":{"control\_group":{"type":"keyword"},"limit\_in\_bytes":{"type":"keyword"},"usage\_in\_bytes":{"type":"keyword"}}}}},"cpu":{"properties":{"load\_average":{"properties":{"1m":{"type":"half\_float"},"5m":{"type":"half\_float"},"15m":{"type":"half\_float"}}}}}}},"process":{"properties":{"open\_file\_descriptors":{"type":"long"},"max\_file\_descriptors":{"type":"long"},"cpu":{"properties":{"percent":{"type":"half\_float"}}}}},"jvm":{"properties":{"mem":{"properties":{"heap\_used\_in\_bytes":{"type":"long"},"heap\_used\_percent":{"type":"half\_float"},"heap\_max\_in\_bytes":{"type":"long"}}},"gc":{"properties":{"collectors":{"properties":{"young":{"properties":{"collection\_count":{"type":"long"},"collection\_time\_in\_millis":{"type":"long"}}},"old":{"properties":{"collection\_count":{"type":"long"},"collection\_time\_in\_millis":{"type":"long"}}}}}}}}},"thread\_pool":{"properties":{"bulk":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"generic":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"get":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"index":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"management":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"search":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"watcher":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"write":{"properties":{"queue":{"type":"integer"},"rejected":{"type":"long"}}}}}}},"index\_recovery":{"type":"object"},"shard":{"properties":{"state":{"type":"keyword"},"primary":{"type":"boolean"},"index":{"type":"keyword"},"relocating\_node":{"type":"keyword"},"shard":{"type":"long"},"node":{"type":"keyword"}}},"job\_stats":{"properties":{"job\_id":{"type":"keyword"},"state":{"type":"keyword"},"data\_counts":{"properties":{"input\_bytes":{"type":"long"},"processed\_record\_count":{"type":"long"},"empty\_bucket\_count":{"type":"long"},"sparse\_bucket\_count":{"type":"long"},"bucket\_count":{"type":"long"},"earliest\_record\_timestamp":{"type":"date"},"latest\_record\_timestamp":{"type":"date"}}},"model\_size\_stats":{"properties":{"model\_bytes":{"type":"long"},"bucket\_allocation\_failures\_count":{"type":"long"}}},"node":{"properties":{"id":{"type":"keyword"}}}}},"ccr\_stats":{"properties":{"remote\_cluster":{"type":"keyword"},"leader\_index":{"type":"keyword"},"follower\_index":{"type":"keyword"},"shard\_id":{"type":"integer"},"leader\_global\_checkpoint":{"type":"long"},"leader\_max\_seq\_no":{"type":"long"},"follower\_global\_checkpoint":{"type":"long"},"follower\_max\_seq\_no":{"type":"long"},"last\_requested\_seq\_no":{"type":"long"},"outstanding\_read\_requests":{"type":"long"},"outstanding\_write\_requests":{"type":"long"},"write\_buffer\_operation\_count":{"type":"long"},"write\_buffer\_size\_in\_bytes":{"type":"long"},"follower\_mapping\_version":{"type":"long"},"follower\_settings\_version":{"type":"long"},"follower\_aliases\_version":{"type":"long"},"total\_read\_time\_millis":{"type":"long"},"total\_read\_remote\_exec\_time\_millis":{"type":"long"},"successful\_read\_requests":{"type":"long"},"failed\_read\_requests":{"type":"long"},"operations\_read":{"type":"long"},"bytes\_read":{"type":"long"},"total\_write\_time\_millis":{"type":"long"},"successful\_write\_requests":{"type":"long"},"failed\_write\_requests":{"type":"long"},"operations\_written":{"type":"long"},"read\_exceptions":{"type":"nested","properties":{"from\_seq\_no":{"type":"long"},"retries":{"type":"integer"},"exception":{"type":"object","properties":{"type":{"type":"keyword"},"reason":{"type":"text"}}}}},"time\_since\_last\_read\_millis":{"type":"long"},"fatal\_exception":{"type":"object","properties":{"type":{"type":"keyword"},"reason":{"type":"text"}}}}},"ccr\_auto\_follow\_stats":{"properties":{"number\_of\_failed\_follow\_indices":{"type":"long"},"number\_of\_failed\_remote\_cluster\_state\_requests":{"type":"long"},"number\_of\_successful\_follow\_indices":{"type":"long"},"recent\_auto\_follow\_errors":{"type":"nested","properties":{"leader\_index":{"type":"keyword"},"timestamp":{"type":"long"},"auto\_follow\_exception":{"type":"object","properties":{"type":{"type":"keyword"},"reason":{"type":"text"}}}}},"auto\_followed\_clusters":{"type":"nested","properties":{"cluster\_name":{"type":"keyword"},"time\_since\_last\_check\_millis":{"type":"long"},"last\_seen\_metadata\_version":{"type":"long"}}}}},"enrich\_coordinator\_stats":{"properties":{"node\_id":{"type":"keyword"},"queue\_size":{"type":"integer"},"remote\_requests\_current":{"type":"long"},"remote\_requests\_total":{"type":"long"},"executed\_searches\_total":{"type":"long"}}},"enrich\_executing\_policy\_stats":{"properties":{"name":{"type":"keyword"},"task":{"type":"object","properties":{"node":{"type":"keyword"},"id":{"type":"long"},"type":{"type":"keyword"},"action":{"type":"keyword"},"description":{"type":"keyword"},"start\_time\_in\_millis":{"type":"date","format":"epoch\_millis"},"running\_time\_in\_nanos":{"type":"long"},"cancellable":{"type":"boolean"}}}}}}},"aliases":{}}}

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [August 24, 2020, 4:41pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/25 "2020-08-24T16:41:44Z")

</div>

Thanks for the responses. This confirms that the Elasticsearch monitoring data is being collected by Metricbeat and is up to date in the monitoring indices. It also confirms that the monitoring index template exists and looks good.

At this point, I'd suggest the following next steps as a **temporary measure** for debugging the issue:

1. Stop Metricbeat.

2. Disable the `system` module, just to reduce some noise in the logs.

3. Restart Metricbeat with debug-level logging. This is expected to be quite verbose.

4. Post the logs from the previous step, right from the beginning of the log to about 20 seconds in. Feel free to use [pastebin.com](http://pastebin.com) or [gist.github.com](http://gist.github.com) if the logs are too much to post over here directly. If you do post them here directly, please enclose them in ``` delimiters so they are properly formatted and easy to read.

5. Stop Metricbeat.

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 25, 2020, 6:19am UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/26 "2020-08-25T06:19:58Z")

</div>

Here are the debug logs of metricbeat :  
[metricbeat logs](https://gist.github.com/yogeshdass/2ad5877492bda421e29318b59683b5ff)

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [August 26, 2020, 12:16pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/27 "2020-08-26T12:16:22Z")

</div>

Thanks @Yogesh_Kumar1 for the debug logs. Looking at them, I see messages like this:

```auto
Starting metricSetWrapper[module=elasticsearch, name=...

```

There are 9 such messages, one for each `elasticsearch` module metricset that is automatically enabled when `xpack.enabled: true` is set. So far so good.

Further down, I see messages like this:

```auto
trying to fetch ... from a non-master node

```

There are 8 such messages, corresponding to 8 of the 9 metricsets, except for `node_stats`.

And finally, we see an event being published by the `node_stats` metricset.

Now, looking at your `modules.d/elasticsearch.yml` configuration, I see this:

```auto
hosts: ["http://X.X.X.X2:9200"]

```

This is where I think we need a change. In your original post you mentioned you have an Elasticsearch cluster of 5 nodes. You will need to add the addresses of each of these 5 nodes to the `hosts` setting, something like this:

```auto
hosts:
  - "http://X.X.X.X1:9200"
  - "http://X.X.X.X2:9200"
  - "http://X.X.X.X3:9200"
  - "http://X.X.X.X4:9200"
  - "http://X.X.X.X5:9200"

```

The reason for this is that the `elasticsearch` module in Metricbeat 7.8.1 and even 7.9.0 needs to collect monitoring data from _every_ Elasticsearch node in the cluster.

In 7.10, we've introduced a new setting named [`scope`](https://github.com/elastic/beats/pull/18547) in the `elasticsearch` module configuration - this setting will let you point the module at _any_ node in the Elasticsearch cluster.

For now, please update your `hosts` setting as I explained above and let us know if that helps.

Cheers,

Shaunak

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 26, 2020, 1:30pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/28 "2020-08-26T13:30:08Z")

</div>

you nailed it man 🙂  
It worked . thanks @shaunak and @chrisronline for the help

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 26, 2020, 1:49pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/29 "2020-08-26T13:49:36Z")

</div>

one quick question why this dashboard is showing data in bytes instead of GB?

 ![Screenshot from 2020-08-26 19-17-54](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d326edddedd0a7b0312d83b89582b6b2f8dbeaf2.png)

---

<div class="post-metadata">

**Author:** ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)\
**Post date:** [August 27, 2020, 1:24pm UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/30 "2020-08-27T13:24:27Z")

</div>

Known bug here : [https://github.com/elastic/kibana/issues/73298](https://github.com/elastic/kibana/issues/73298)

---

<div class="post-metadata">

**Author:** ![Yogesh\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_kumar1/32/74178_2.png) [@Yogesh\_Kumar1](https://discuss.elastic.co/u/Yogesh_Kumar1)\
**Post date:** [August 29, 2020, 7:36am UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/31 "2020-08-29T07:36:38Z")

</div>

thanks @chrisronline

---

<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:** [September 26, 2020, 7:36am UTC](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635/32 "2020-09-26T07:36:55Z")

</div>

Closed on September 26, 2020, 7:36am UTC

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

[Previous page](https://discuss.elastic.co/t/setup-mode-is-not-available-you-do-not-have-the-necessary-permissions-to-do-this/245635.md?page=1)
