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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...