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!

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...