Getting Data In

Uable to connect Splunk using php sdk

empowersplunk
New Member

I am using Splunk PHP SDK and I am not able to login using API.

$SplunkExamples_connectArguments = array(
'host' => 'api.9xnn-6gtz.data.splunkstorm.com',
'port' => '8089',
'username' => 'xxxxx',
'password' => 'xxxxx',
'token' => 'xxxxxxxxxxxxxxxxxxxx',
);

It gives me an error :
Login Failed.
Reason: String could not be parsed as XML

I also tried using curl but there also I get error :
curl: (7) Failed to connect to api.nr5b-yk5q.data.splunkstorm.com port 8089: Con
nection refused

Please help.

Tags (2)
0 Karma

uchaitanya
New Member

Can anyone help on this matter. I got the same error.
Login Failed.
Reason: String could not be parsed as XML

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...