Dashboards & Visualizations

Failed to fetch REST endpoint uri=https://127.0.0.1:8089/services/cluster/master/generation/master?count=0

vaibhavbharadwa
Observer

We have a Cluster master which we are using as the monitoring console as well.

We have created a dashboard to collect Cluster master status. This is working fine for 'admin' role and we are getting below error for the custom role which has inherited capabilities from 'user' role.

Error message - Failed to fetch REST endpoint uri=https://127.0.0.1:8089/services/cluster/master/generation/master?count=0 from server https://127.0.0.1:8089. Check that the URI path provided exists in the REST API.

 

Query used for the dashboard- 

| rest splunk_server=<Cluster master hostname> /services/cluster/master/generation/master
| fields title pending_last_reason splunk_server search_factor_met replication_factor_met
| eval all_data_searchable=if(isnull(pending_last_reason) OR pending_last_reason=="","All Data is Searchable","Some Data is Not Searchable")
| eval search_factor_met=if(search_factor_met==1 OR search_factor_met=="1","Search Factor is Met","Search Factor is Not Met")
| eval replication_factor_met=if(replication_factor_met==1 OR replication_factor_met=="1","Replication Factor is Met","Replication Factor is Not Met")
| table title splunk_server search_factor_met replication_factor_met all_data_searchable
| rename title as Title splunk_server as "Splunk Server" search_factor_met as "Search Factor Status" replication_factor_met as "Replication Factor Status" all_data_searchable as "All Data Searchable Status"

 

 

What capability I need to enable so that users can access this dashboard?

Any help would be appreciated.

Labels (1)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...