<?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: Is it possible to use a configuration stanza in webhook URL? e.g. https://`stanza[service_url]`?disposition=1&amp;auth=`stanza[auth_token]` in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-a-configuration-stanza-in-webhook-URL-e-g/m-p/258899#M49701</link>
    <description>&lt;P&gt;It appears that it is &lt;STRONG&gt;not&lt;/STRONG&gt; possible,&lt;BR /&gt;
But there are alternatives.&lt;/P&gt;

&lt;P&gt;It would involve creating a &lt;STRONG&gt;custom alert action&lt;/STRONG&gt;, which is actually a one-alert-app. &lt;BR /&gt;
Once installed correctly, it shows in the list of actions in 'add actions', have a user interface, and more.&lt;BR /&gt;
Using it, one can have the user explicitly state the required input for the action to complete successfully.&lt;/P&gt;

&lt;P&gt;Its all here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ModAlertsIntro"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ModAlertsIntro&lt;/A&gt;&lt;BR /&gt;
However, I could not follow the explanation until I read it from the perspective of it being a separate add-on.&lt;/P&gt;

&lt;P&gt;I also tried to run a python script instead of a webhook. This option is smooth, but the script has to work out the required data by parsing the attached results, which can be quite challenging; with the webhook, the "fielded" result is attached in JSON&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2016 12:04:26 GMT</pubDate>
    <dc:creator>ramabu</dc:creator>
    <dc:date>2016-02-21T12:04:26Z</dc:date>
    <item>
      <title>Is it possible to use a configuration stanza in webhook URL? e.g. https://`stanza[service_url]`?disposition=1&amp;auth=`stanza[auth_token]`</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-a-configuration-stanza-in-webhook-URL-e-g/m-p/258898#M49700</link>
      <description>&lt;P&gt;I am sure this is not an existing syntax &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and yet - is it possible to encode such URL-s? &lt;/P&gt;

&lt;P&gt;======================&lt;/P&gt;

&lt;H1&gt;Feb 10th:&lt;/H1&gt;

&lt;P&gt;So I will sort of repeat the question:&lt;/P&gt;

&lt;P&gt;If I POST to e.g. &lt;A href="https://10.41.1.136/splunk/alerts?disposition=3&amp;amp;auth=MyApp%20206eb5cb3c-5c70-4cb7-8844-5a0407a43ca7"&gt;https://10.41.1.136/splunk/alerts?disposition=3&amp;amp;auth=MyApp%20206eb5cb3c-5c70-4cb7-8844-5a0407a43ca7&lt;/A&gt;, then everything works fine.&lt;/P&gt;

&lt;P&gt;But '10.41.1.136' and '206eb5cb3c-5c70-4cb7-8844-5a0407a43ca7' actually configurable for the app. Is it possible to save the search in a "formal" format, and have actual values replace the formal ones upon alert being triggered?&lt;BR /&gt;
I did see how to reference a result field, but it's is not useful in this case.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
rama&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 07:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-a-configuration-stanza-in-webhook-URL-e-g/m-p/258898#M49700</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-01-31T07:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a configuration stanza in webhook URL? e.g. https://`stanza[service_url]`?disposition=1&amp;auth=`stanza[auth_token]`</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-a-configuration-stanza-in-webhook-URL-e-g/m-p/258899#M49701</link>
      <description>&lt;P&gt;It appears that it is &lt;STRONG&gt;not&lt;/STRONG&gt; possible,&lt;BR /&gt;
But there are alternatives.&lt;/P&gt;

&lt;P&gt;It would involve creating a &lt;STRONG&gt;custom alert action&lt;/STRONG&gt;, which is actually a one-alert-app. &lt;BR /&gt;
Once installed correctly, it shows in the list of actions in 'add actions', have a user interface, and more.&lt;BR /&gt;
Using it, one can have the user explicitly state the required input for the action to complete successfully.&lt;/P&gt;

&lt;P&gt;Its all here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ModAlertsIntro"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ModAlertsIntro&lt;/A&gt;&lt;BR /&gt;
However, I could not follow the explanation until I read it from the perspective of it being a separate add-on.&lt;/P&gt;

&lt;P&gt;I also tried to run a python script instead of a webhook. This option is smooth, but the script has to work out the required data by parsing the attached results, which can be quite challenging; with the webhook, the "fielded" result is attached in JSON&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 12:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-a-configuration-stanza-in-webhook-URL-e-g/m-p/258899#M49701</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-02-21T12:04:26Z</dc:date>
    </item>
  </channel>
</rss>

