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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...