Getting Data In

Not getting output in Splunk UI search via script command

rbs2019
New Member

Hi Team,

I have configured commands.conf ($splunkHome/etc/apps/search/default)and created argon.py ($splunkHome/etc/apps/search/bin)
as below:

commands.conf:
[argon]
filename = argon.py
retainsevents = true
outputheader = true
supports_rawargs = true

argon.py :

#!/opt/Devops/splunk/bin/python2.7
sys.path.insert(0,'/opt/Devops/splunk/lib/python2.7/site-packages/splunk/')
import Intersplunk as si
import commands

result = []
status, output = commands.getstatusoutput("/opt/Devops/splunk/bin/scripts/argon.linux.x64 -h&HostName -p&Port -f&Route")
results = {
       "out": output
}
result.append(results)
si.outputResults(result)

Script is running fine locally (directly on splunk server) but Splunk UI search is not giving any output

Tags (1)
0 Karma

rbs2019
New Member

Hi Team,

Any update on above question please?

0 Karma
Get Updates on the Splunk Community!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...