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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...