Splunk Dev

SDK for PHP Search with Append Throws Error

kmattern
Builder

I'm playing with the Splunk SDK for PHP and am enjoying it but whenever I use an append function in a search it throws the following error

•[EXCEPTION] HTTP 200 OK

The PHP code for the search looks like this:

$search='search index=portal sourcetype="portal" earliest=-7d@d latest=-d /SAR/ARH/gen_info* WebPage!="index.htm*"
| stats count(WebPage) as "General Information"
| append [search index=portal sourcetype="portal" earliest=-7d@d latest=-d /SAR/faq* WebPage!="index.htm*"
| stats count(WebPage) as "Help Line"]
| append [search index=portal sourcetype="portal" earliest=-7d@d latest=-d /SAR/ARH/media* WebPage!="index.htm*"
| stats count(WebPage) as "Media"]';

If I just run the first search I get results. Do I have to do anything special with append? I use it a lot.

I get the same error if I call this as a saved search. Other saved searches work in the SDK but this one will not. It runs perfectly in it's dashboard or manually.

Tags (4)
0 Karma

kmattern
Builder

Apparently there is a bug in the PHP SDK. If I get a resolution I'll post it here.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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