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
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!

Review:





Or Learn More in Our Blog >>