All Apps and Add-ons

No data returned by getOrganizedResults()

nikita_pronin
Observer

Have been trying to create custom command, but it seems that getOrganizedResults() doesn't 

doesn't seem to get the previous search results. 

Just to test things i wrote this: 

import sys,splunk.Intersplunk
# this call populates the results variable with all the events passed into the search script:
results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
# hand the results right back to Splunk
splunk.Intersplunk.outputResults(results)

The data hadn't came back, the massage was: "No results found. Try expanding the time range."

The command was added in commands.conf, I was authorized to use it.  Why can't getOrganizedResults get data? 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust
Please share the query that invoked the custom command.
---
If this reply helps you, Karma would be appreciated.
0 Karma

nikita_pronin
Observer

Something like this

| inputlookup wrapper_tst.csv
| splitanalyticswrap

Data in csv liiks like this:

metric tag_split values

revenuetag0
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...