<?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 Example of calling a bashscript from a dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Example-of-calling-a-bashscript-from-a-dashboard/m-p/612485#M50239</link>
    <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple bash script which pulls down some data from git and restarts a service. I'd like to give a button to my SOC on a Splunk dashboard that they can just click. I can put the script anywhere really. I remember seeing that if I should be able to execute script from splunk/bin from dashboards but I having a hard time finding an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone have an example/recipe they can point me to?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 22:53:13 GMT</pubDate>
    <dc:creator>dpwtheitguy</dc:creator>
    <dc:date>2022-09-08T22:53:13Z</dc:date>
    <item>
      <title>Example of calling a bashscript from a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Example-of-calling-a-bashscript-from-a-dashboard/m-p/612485#M50239</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple bash script which pulls down some data from git and restarts a service. I'd like to give a button to my SOC on a Splunk dashboard that they can just click. I can put the script anywhere really. I remember seeing that if I should be able to execute script from splunk/bin from dashboards but I having a hard time finding an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone have an example/recipe they can point me to?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 22:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Example-of-calling-a-bashscript-from-a-dashboard/m-p/612485#M50239</guid>
      <dc:creator>dpwtheitguy</dc:creator>
      <dc:date>2022-09-08T22:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Example of calling a bashscript from a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Example-of-calling-a-bashscript-from-a-dashboard/m-p/612497#M50240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229146"&gt;@dpwtheitguy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in Splunk you can automatically run your script as alert action.&lt;/P&gt;&lt;P&gt;To run a script using a button, you have to create a JavaScript that runs your bashscript, associate it to an html button and insert the JavaScript in the first row of the dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" script="yourscript.js"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 04:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Example-of-calling-a-bashscript-from-a-dashboard/m-p/612497#M50240</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-09T04:40:06Z</dc:date>
    </item>
  </channel>
</rss>

