Getting Data In

Rest call to splunk licenser/localslave to get master_uri returns "self"

shoof
New Member

Hello,

We have an integration test which verifies expected values after deploying a new splunk instance. This test is written in python using the requests module.

We're using port forwarding to reach the deployed splunk instance, the url we're hitting is:
f"https://localhost:arbitrary_port/services/licenser/localslave?output_mode=json"

From the output we're using the following keys to get the master_uri value:
['entry'][0]['content']['master_uri']

This test often passes, but sometimes will fail because the value returned is "self".

Any idea why this would be happening?

Tags (2)
0 Karma

shoof
New Member

Apparently this started happening with Splunk 8, but is not an issue with Splunk 7.3.

0 Karma
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...