Hi,
On Click of Button in HTML Splunk dashboard,
I need to pass start date and end date as a input parameter to custom python script in the Linux server.
path to the script: /opt/splunk/etc/apps/search/bin/
If possible, please share with us the steps / procedure to do the above scenario.
Thanks in advance.
@PriyaGopathy
I suggest the following approach.
1) Create a custom endpoint in Splunk which will call python script in search/bin/ using subprocess module.
2) Create a function which will call a custom endpoint.
3) Call javascript function on click of the HTML button.
Ref:https://www.hurricanelabs.com/splunk-tutorials/splunk-custom-endpoints-part-1-the-basics
@ kamlesh_vaghela
Thanks for the update. I ll try and let you know.
Meanwhile, do you have any working sample?