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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...