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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...