【发布时间】:2023-03-19 20:05:01
【问题描述】:
我正在尝试使用 PHP SDK 连接 Splunk,但出现以下错误:
https://api.9xnn-6gtz.data.splunkstorm.com:80/services/auth/login Warning: array_shift() expects parameter 1 to be array, null given in /home/u354848659/public_html/oauth/splunk/Splunk/Http.php on line 124
Warning: Invalid argument supplied for foreach() in /home/u354848659/public_html/oauth/splunk/Splunk/Http.php on line 126
Login Failed. Reason: String could not be parsed as XML
$SplunkExamples_connectArguments = array(
'host' => 'example.com',
'port' => '80',
'username' => 'xxxx',
'password' => 'xxxx',
'token' => 'xxxxxxxxxxx',
);
我通过了以上所有细节。但是当我试图运行它时它不起作用。请帮助我尽早解决问题。谢谢
【问题讨论】: