Hi all. I am trying to use the Splunk Powershell module to be able to query our server after agent installations to verify that they are reporting correctly instead of logging into the web portal to check.
When I try:
connect-splunk -ComputerName $splunkServer -Protocol http -Port $port -Credential $cred -Verbose
I get the following error:
Invoke-HTTPPost : Exception calling "GetRequestStream" with "0" argument(s): "The underlying connection was closed: The connection
was closed unexpectedly."
I have tried using the default port, both http and https protocols as well, but nothing works. Also, this will fail immediately without a delay (where-as changing the protocol will cause a timeout error message). To me, it appears that this path does not exist.
SplunkServer:5617/services/auth/login
If I enter the url into the browser, I get a "Page Cannot Be Displayed" error. If I go straight to SplunkServer though, the url is this:
SplunkServer/en-US/account/login?return_to=%2Fen-US%2F
Do I need to tweak some settings in the module? Or might this not be compatible with the version of Splunk I have?
... View more