<?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 How to send curl request from Splunk dashboard? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612742#M13867</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am&amp;nbsp; a new to spunk.&lt;/P&gt;
&lt;P&gt;I am trying to send an REST request from splunk dashboard by a submit button to external server that listens http requests.&lt;/P&gt;
&lt;P&gt;How can i achieve that goal? I basically need to send a simple curl with a var in the path that will be selected by the user from a drop down list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 13:12:20 GMT</pubDate>
    <dc:creator>mottig</dc:creator>
    <dc:date>2022-09-12T13:12:20Z</dc:date>
    <item>
      <title>How to send curl request from Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612742#M13867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am&amp;nbsp; a new to spunk.&lt;/P&gt;
&lt;P&gt;I am trying to send an REST request from splunk dashboard by a submit button to external server that listens http requests.&lt;/P&gt;
&lt;P&gt;How can i achieve that goal? I basically need to send a simple curl with a var in the path that will be selected by the user from a drop down list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 13:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612742#M13867</guid>
      <dc:creator>mottig</dc:creator>
      <dc:date>2022-09-12T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to send curl request from Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612803#M13875</link>
      <description>&lt;P&gt;Take a look at this addon&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/4146/" target="_blank"&gt;https://splunkbase.splunk.com/app/4146/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 01:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612803#M13875</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-13T01:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to send curl request from Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612822#M13880</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Im not sure this addon is what I need.&lt;/P&gt;&lt;P&gt;This addon is allowing to have curl sending abilities in SPL. I need to send an API from a button in a dashboard&lt;/P&gt;&lt;P&gt;that is not related to to the data.&lt;/P&gt;&lt;P&gt;For example I want to notify my backend server to start send me events from a certain type(that will be define as a strings in another drop down list).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 05:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612822#M13880</guid>
      <dc:creator>mottig</dc:creator>
      <dc:date>2022-09-13T05:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to send curl request from Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612824#M13881</link>
      <description>&lt;P&gt;Without fully understanding what you are trying to achieve, you can try using the solution below to run the SPL command that&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;suggested add-on offers, or perhaps this may give you other ideas to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Button-to-run-splunk-query/m-p/454739/highlight/true#M29819" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Button-to-run-splunk-query/m-p/454739/highlight/true#M29819&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 06:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612824#M13881</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-09-13T06:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to send curl request from Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612825#M13882</link>
      <description>&lt;P&gt;That is exactly what you can do with the add on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effectively the button can set a token and then the SPL containing the curl command can execute and notify your backend server to perform whatever you need it to.&lt;/P&gt;&lt;P&gt;In Splunk everything is a search, so you will just have a hidden search that is dependent on the token that can be set by the button. Clicking the button will set the token, causing the SPL to run.&lt;/P&gt;&lt;P&gt;See the Custom Token Links example in the Splunk Dashboard Examples app, which shows you how to do buttons/tokens.&lt;/P&gt;&lt;P&gt;Then your SPL would be something like this, where the&amp;nbsp;curl_button_token token is set by the button and cleared again when the search has run.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search depends="$curl_button_token$"&amp;gt;
  &amp;lt;query&amp;gt;
| curl ...
  &amp;lt;/query&amp;gt;
  &amp;lt;done&amp;gt;
    &amp;lt;unset token="curl_button_token"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/done&amp;gt;
&amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 06:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-send-curl-request-from-Splunk-dashboard/m-p/612825#M13882</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-13T06:05:56Z</dc:date>
    </item>
  </channel>
</rss>

