Splunk Search

What is the correct URI to logOn with .NET SDK LogOnAsync?

tbomgardner
New Member

I am trying to write a simple app that will login to Splunk and retrieve some events. I'm using the .NET SDK Splunk.Client. I can't get past the login. This is what I've got:

Service service = new Service(new Uri($"https://prd-p-32xxxxxxxxxx.cloud.splunk.com"));
service.LogOnAsync("myusername", "mypassword").Wait();

Apparently this is not the correct URI. Do you know what is? Is it even possible to do what I'm trying to do?

Thank you!

Tags (3)
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...