<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to integrate HTML Splunk Dashboard with Python Script? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429741#M28317</link>
    <description>&lt;P&gt;@ kamlesh_vaghela&lt;/P&gt;

&lt;P&gt;Thanks for the update. I ll try and let you know.&lt;BR /&gt;
Meanwhile, do you have any working sample?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 10:36:23 GMT</pubDate>
    <dc:creator>PriyaGopathy</dc:creator>
    <dc:date>2018-08-31T10:36:23Z</dc:date>
    <item>
      <title>How to integrate HTML Splunk Dashboard with Python Script?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429739#M28315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;On Click of Button in HTML Splunk dashboard,&lt;BR /&gt;
I need to pass start date and end date as a input parameter to custom python script in the Linux server.&lt;BR /&gt;
path to the script: &lt;STRONG&gt;/opt/splunk/etc/apps/search/bin/&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;What package needs to import in python script?&lt;/LI&gt;
&lt;LI&gt;Object name to get the date value from splunk?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If possible, please share with us the steps / procedure to do the above scenario.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 11:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429739#M28315</guid>
      <dc:creator>PriyaGopathy</dc:creator>
      <dc:date>2018-08-29T11:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate HTML Splunk Dashboard with Python Script?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429740#M28316</link>
      <description>&lt;P&gt;@PriyaGopathy&lt;/P&gt;

&lt;P&gt;I suggest the following approach.&lt;/P&gt;

&lt;P&gt;1) Create a custom endpoint in Splunk which will call python script in &lt;STRONG&gt;search/bin/&lt;/STRONG&gt; using subprocess module. &lt;BR /&gt;
2) Create a function which will call a custom endpoint.&lt;BR /&gt;
3) Call javascript function on click of the HTML button.&lt;/P&gt;

&lt;P&gt;Ref:&lt;A href="https://www.hurricanelabs.com/splunk-tutorials/splunk-custom-endpoints-part-1-the-basics"&gt;https://www.hurricanelabs.com/splunk-tutorials/splunk-custom-endpoints-part-1-the-basics&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429740#M28316</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-08-29T13:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate HTML Splunk Dashboard with Python Script?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429741#M28317</link>
      <description>&lt;P&gt;@ kamlesh_vaghela&lt;/P&gt;

&lt;P&gt;Thanks for the update. I ll try and let you know.&lt;BR /&gt;
Meanwhile, do you have any working sample?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 10:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-integrate-HTML-Splunk-Dashboard-with-Python-Script/m-p/429741#M28317</guid>
      <dc:creator>PriyaGopathy</dc:creator>
      <dc:date>2018-08-31T10:36:23Z</dc:date>
    </item>
  </channel>
</rss>

