<?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 running a custom command via a button in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-custom-command-via-a-button/m-p/541003#M37075</link>
    <description>&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;i want to run a custom splunk command via a button i can put on the dashboard. i want to do it via a visualization and not editing the xml. I want it work like a panel that can be added via the add panel option on the dashboard. i know it should be done via the visualizaions.js file in a custom visualization but i would like some help on how to write the visualization_source.js file for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the logic is&amp;nbsp;&lt;/P&gt;&lt;P&gt;button - visualization.js - custom command&amp;nbsp;&lt;/P&gt;&lt;P&gt;im assuming the command will have to be run via REST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 12:01:28 GMT</pubDate>
    <dc:creator>zubairaizatron</dc:creator>
    <dc:date>2021-02-23T12:01:28Z</dc:date>
    <item>
      <title>running a custom command via a button</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-custom-command-via-a-button/m-p/541003#M37075</link>
      <description>&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;i want to run a custom splunk command via a button i can put on the dashboard. i want to do it via a visualization and not editing the xml. I want it work like a panel that can be added via the add panel option on the dashboard. i know it should be done via the visualizaions.js file in a custom visualization but i would like some help on how to write the visualization_source.js file for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the logic is&amp;nbsp;&lt;/P&gt;&lt;P&gt;button - visualization.js - custom command&amp;nbsp;&lt;/P&gt;&lt;P&gt;im assuming the command will have to be run via REST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 12:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-custom-command-via-a-button/m-p/541003#M37075</guid>
      <dc:creator>zubairaizatron</dc:creator>
      <dc:date>2021-02-23T12:01:28Z</dc:date>
    </item>
  </channel>
</rss>

