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!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...