Security

Do developers need admin permissions to use Splunk SDK C#?

yinsongli
Engager

I am new to Splunk SDK. what permissions do developers need to use SDK. I only have regular user permission to create searches and I got "Unable to connect to the remote server" "No connection could be made because the target machine actively refused it" when I use the credential to connect to the service and pull search results though SDK.

I can connect to the service URL through browser but not through SDK. what might be the reasons? permissions? firwall? Any advice would be appreciated.

Here is the code I was trying to run

ServiceArgs svcArgs = new ServiceArgs();
svcArgs.Host = ""; // I did put host in my actual code.
svcArgs.Port = 61099;

        // Create a Service instance and log in 
        Service service = new Service(svcArgs);

        foreach (var app in service.GetApplications().Values)
        {
            System.Console.WriteLine(app.Label);
        }
Tags (2)

somesoni2
Revered Legend

The Splunk SDK work as wrapper around Splunk REST API and it needs admin access.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...