I have followed below link but not receiving expected result.
Step 1
Commands.conf
[shape]
chunked=true
filename = shape.py
generating = true
supports_rawargs = true
Step 2
authorize.conf
[capability::run_script_first]
[role_admin]
run_script_first = enabled
Step 3
shape.py (in bin directory)
shape.py from below location.
https://docs.splunk.com/Documentation/Splunk/7.1.1/Search/Customsearchcommandshape
Step 4:
IImage attached
Step 5
expected result same as below link
https://docs.splunk.com/Documentation/Splunk/7.1.1/Search/Customsearchcommandshape
Query
1) How to send data from python to splunk? (splunk.Intersplunk.outputResults(results))
2) how to get result same as Step 5 link
3) is there any way, where as I may check that my python script is working properly? (any log or anywhere in UI)
OR
Share some custom command whereas I should be able to pass splunk data to receive data from python script???
Thanks in advance.
... View more