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.

Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...