Splunk Cloud Platform

How to resolve API Search Lookup ERROR?

laauespinosa
Explorer

Hi, 

We are doing consults via API with the query: 

index=_internal sourcetype=splunk_python subject |fields subject,recipients | where subject like "%ORION%"'

But when we try to collect the results, give us an error from a lookup that is not part of the original search.

Via web the search is working fine, but the problem is via API.

Have you experienced something like that?

Thanks!

Labels (2)
0 Karma

schose
Builder

Hi, 

when searching via API you are providing parameters:

cparams = { "host" : lconfig["host"],
"port" : lconfig["port"],
"username" : lconfig["user"],
"password" : lconfig["password"],
"app" : lconfig["app"] }

most propably you are not using same user or correct app context. 

check index=_audit and/or index=_internal sourcetype=splunkd_access + username..

best regards,

Andreas

0 Karma
Get Updates on the Splunk Community!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...