<?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: Custom alert action ui input in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325422#M9487</link>
    <description>&lt;P&gt;Cool. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 02:29:30 GMT</pubDate>
    <dc:creator>nit123</dc:creator>
    <dc:date>2017-06-03T02:29:30Z</dc:date>
    <item>
      <title>Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325418#M9483</link>
      <description>&lt;P&gt;I'm working with custom alert actions.  I've taken most of my example from &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/AdvancedDev/ModAlertsBasicExample"&gt;this&lt;/A&gt; example.  It basically takes the xml written to stdin and writes it to a log.  This works fine.  I've added a UI element, with a couple fields that a user can write to.  I'd like the input from this also written to this xml, so that I can pass it to my script.  I can't figure out how to do this.  The ui input does show up in savedsearches.conf.  How can I get the value entered into the ui elements to be passed to my script?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 03:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325418#M9483</guid>
      <dc:creator>jbullough</dc:creator>
      <dc:date>2017-06-02T03:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325419#M9484</link>
      <description>&lt;P&gt;This can be done with ARF in Splunk where you can have an input field to accept text input or a value and that value is passed to script to trigger soem action and remediate your use case. &lt;/P&gt;

&lt;P&gt;This &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomAlertConfig"&gt;link&lt;/A&gt; shall answer your query to resolution. Follow the same. &lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 11:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325419#M9484</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-06-02T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325420#M9485</link>
      <description>&lt;P&gt;Ok I figured out what I'm missing.  As far as I could find, this isn't documented explicitly, though maybe I'm wrong I just couldn't find it.&lt;/P&gt;

&lt;P&gt;I was missing the way this all links together.  In alert_actions.conf the [stanza_name] must be the same as the script it executes, which must be the same in savedsearches.conf action.stanza_name.param.foo.  So in the UI html, you just use the action.stanza_name.param.foo when declaring the input.&lt;/P&gt;

&lt;P&gt;I hope this explanation helps someone else in this position!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325420#M9485</guid>
      <dc:creator>jbullough</dc:creator>
      <dc:date>2020-09-29T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325421#M9486</link>
      <description>&lt;P&gt;I appreciate the answer, no idea what ARF is.  I got it working, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325421#M9486</guid>
      <dc:creator>jbullough</dc:creator>
      <dc:date>2017-06-02T14:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325422#M9487</link>
      <description>&lt;P&gt;Cool. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 02:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325422#M9487</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-06-03T02:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325423#M9488</link>
      <description>&lt;P&gt;This was helpful. You are right about the documentation. It could be better. It's a little all over the place. I just needed a simple full example and I was confused about how it was being invoked. You answered my question. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 18:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325423#M9488</guid>
      <dc:creator>hexxamillion</dc:creator>
      <dc:date>2019-02-21T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325424#M9489</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171855"&gt;@jbullough&lt;/a&gt; , I got the same problem where the variables declared in html cannot be passed to savedsearches.conf. I did double check and can confirm the names are identical as mentioned in your answer. Anything else may cause the issue?&lt;/P&gt;

&lt;P&gt;html file as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    ```

&amp;lt;div class="control-group"&amp;gt;
    &amp;lt;label class="control-label" for="username"&amp;gt;Username&amp;lt;/label&amp;gt;

    &amp;lt;div class="controls"&amp;gt;
        &amp;lt;input type="text" name="action.fortigate_alert.param.username" id="username" /&amp;gt;
        &amp;lt;span class="help-block"&amp;gt;
          The name of user for Fortigate SSH login
        &amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class="control-group"&amp;gt;
    &amp;lt;label class="control-label" for="realm"&amp;gt;Realm&amp;lt;/label&amp;gt;

    &amp;lt;div class="controls"&amp;gt;
        &amp;lt;input type="text" name="action.fortigate_alert.param.realm" id="realm" /&amp;gt;
        &amp;lt;span class="help-block"&amp;gt;
          What is this user credential used for?
        &amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;```&lt;/P&gt;

&lt;P&gt;savedsearches.conf.spec as below:&lt;/P&gt;

&lt;P&gt;action.fortigate_alert.param.username = &lt;CODE&gt;&amp;lt;string&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
action.fortigate_alert.param.realm = &lt;CODE&gt;&amp;lt;string&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/325424#M9489</guid>
      <dc:creator>diwaly2019</dc:creator>
      <dc:date>2020-09-30T04:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert action ui input</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/514223#M9490</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/45211"&gt;@diwaly2019&lt;/a&gt;&amp;nbsp; you are missing underscore marks.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;action.fortigate_alert.param.username = &amp;lt;string&amp;gt;
action.fortigate_alert.param.realm = &amp;lt;string&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Btw do you guys know how we are able to run javascript in this HTML file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 07:09:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-action-ui-input/m-p/514223#M9490</guid>
      <dc:creator>thinhdinh</dc:creator>
      <dc:date>2020-08-15T07:09:39Z</dc:date>
    </item>
  </channel>
</rss>

