<?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: Integrating Splunk Dashboard With Python in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Integrating-Splunk-Dashboard-With-Python/m-p/325527#M21033</link>
    <description>&lt;P&gt;@shreshthsharma, you can use &lt;CODE&gt;script&lt;/CODE&gt; command in Splunk search to execute a python script placed under &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&amp;lt;your_app_name&amp;gt;/bin/&lt;/CODE&gt; path. Refer to Splunk documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Script"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then your python script can write back to Splunk using &lt;CODE&gt;print&lt;/CODE&gt; and &lt;CODE&gt;sys.stderr.write&lt;/CODE&gt;. Refer to a simple python scripted input example: &lt;A href="https://sublimerobots.com/2017/01/simple-splunk-scripted-input-example/"&gt;https://sublimerobots.com/2017/01/simple-splunk-scripted-input-example/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 21:41:20 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-01-24T21:41:20Z</dc:date>
    <item>
      <title>Integrating Splunk Dashboard With Python</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Integrating-Splunk-Dashboard-With-Python/m-p/325526#M21032</link>
      <description>&lt;P&gt;Hi I'm trying to build a splunk dashboard which sends a token to a python script and then after processing the token value gets updated using the python script, the question is can i directly make the dashboard interact with python or do i need to add a javascript in between the two?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 06:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Integrating-Splunk-Dashboard-With-Python/m-p/325526#M21032</guid>
      <dc:creator>shreshthsharma</dc:creator>
      <dc:date>2018-01-24T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Splunk Dashboard With Python</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Integrating-Splunk-Dashboard-With-Python/m-p/325527#M21033</link>
      <description>&lt;P&gt;@shreshthsharma, you can use &lt;CODE&gt;script&lt;/CODE&gt; command in Splunk search to execute a python script placed under &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&amp;lt;your_app_name&amp;gt;/bin/&lt;/CODE&gt; path. Refer to Splunk documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Script"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then your python script can write back to Splunk using &lt;CODE&gt;print&lt;/CODE&gt; and &lt;CODE&gt;sys.stderr.write&lt;/CODE&gt;. Refer to a simple python scripted input example: &lt;A href="https://sublimerobots.com/2017/01/simple-splunk-scripted-input-example/"&gt;https://sublimerobots.com/2017/01/simple-splunk-scripted-input-example/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Integrating-Splunk-Dashboard-With-Python/m-p/325527#M21033</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-24T21:41:20Z</dc:date>
    </item>
  </channel>
</rss>

