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!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...