<?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: Prepopulate inputs in custom Splunk ES adaptive response action in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Prepopulate-inputs-in-custom-Splunk-ES-adaptive-response-action/m-p/580784#M10220</link>
    <description>&lt;P&gt;Hello, update to this I as I figured out where I was going wrong. I had the idea that when I brought up the html page for the adaptive response that all the forms would fill in with their values from the event, instead copying from the Splunk example I configured my python script to instead pull the value of the field that I wanted (&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/enterprisesecurity/adaptiveresponseframework/exampleadaptiveresponse/)" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/devtools/enterprisesecurity/adaptiveresponseframework/exampleadaptiveresponse/)&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;So instead of opening up that page to input values, the page now has the field name which would be static for this process always, then when I hit run the python script can pull the value of the field from my event using this function (with field being my parameter set in my config):&lt;BR /&gt;&lt;BR /&gt;parameter = result[self.configuration.get("field")]&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 13:51:58 GMT</pubDate>
    <dc:creator>dmills_inov</dc:creator>
    <dc:date>2022-01-12T13:51:58Z</dc:date>
    <item>
      <title>Prepopulate inputs in custom Splunk ES adaptive response action</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Prepopulate-inputs-in-custom-Splunk-ES-adaptive-response-action/m-p/575273#M10219</link>
      <description>&lt;P&gt;I am currently in the process of building out a custom application which will include an adaptive response action that uses a python script to update a system's group based on events that come into our incident review page. I have all of the logic working (Correlation search identifies an event, creates a notable, from there I can select the AR action, input this systems GUID into the text box and it will go from there).&lt;BR /&gt;&lt;BR /&gt;My issue is that I cannot get the correct configuration to have this field prepopulated when the menu is brought up based on the event in the notable. The configuration files I &lt;EM&gt;believe&lt;/EM&gt; need to be updated are the alert_actions.conf,&amp;nbsp;alert_actions.conf.spec,&amp;nbsp;savedsearches.conf.spec, and &amp;lt;alert_action_name&amp;gt;.html files.&lt;BR /&gt;&lt;BR /&gt;I have found some similar posts about this but nothing that gives details about the syntax needed for each file:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Enterprise-Security/Does-the-service-now-integration-work-as-an-ad-hoc-adaptive/m-p/437270" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Enterprise-Security/Does-the-service-now-integration-work-as-an-ad-hoc-adaptive/m-p/437270&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Is-it-possible-to-prepopulate/m-p/251952" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Is-it-possible-to-prepopulate/m-p/251952&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my various config files I have the following lines:&lt;/P&gt;&lt;P&gt;alert_actions.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;param.hostname = $result.hostname$&lt;BR /&gt;param.connector_guid =$result.connector_guid$&lt;/P&gt;&lt;P&gt;alert_actions.conf.spec&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;param.hostname = &amp;lt;string&amp;gt;&lt;BR /&gt;param.cguid = &amp;lt;string&amp;gt;&lt;/P&gt;&lt;P&gt;savedsearches.conf.spec&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;param.hostname = &amp;lt;string&amp;gt;&lt;BR /&gt;param.cguid = &amp;lt;string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;alert_action_name&amp;gt;.html&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form class="form-horizontal form-complex"&amp;gt;
&amp;lt;div class="control-group"&amp;gt;
	&amp;lt;label class="control-label" for="custom_app_hostname"&amp;gt;Hostname &amp;lt;span class="required"&amp;gt;*&amp;lt;/span&amp;gt; &amp;lt;/label&amp;gt;
    &amp;lt;div class="controls"&amp;gt;
	&amp;lt;input type="text" name="action.custom_app.param.hostname" value="$hostname$" id="custom_app_hostname"/&amp;gt;
                &amp;lt;span class="help-block"&amp;gt;Verify this is the correct hostname, if not then input from the alert.&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="custom_app_cguid"&amp;gt;Connector GUID &amp;lt;span class="required"&amp;gt;*&amp;lt;/span&amp;gt; &amp;lt;/label&amp;gt;
    &amp;lt;div class="controls"&amp;gt;
	&amp;lt;input type="text" name="action.custom_app.param.connector_guid" value="$connector_guid$" id="custom_app_cguid"/&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Below is the screenshot of the menu I am referring to needing to be prepopulated:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Menu_Example.png" style="width: 766px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16894iF81552050DE53EAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Menu_Example.png" alt="Menu_Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Prepopulate-inputs-in-custom-Splunk-ES-adaptive-response-action/m-p/575273#M10219</guid>
      <dc:creator>dmills_inov</dc:creator>
      <dc:date>2021-11-17T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prepopulate inputs in custom Splunk ES adaptive response action</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Prepopulate-inputs-in-custom-Splunk-ES-adaptive-response-action/m-p/580784#M10220</link>
      <description>&lt;P&gt;Hello, update to this I as I figured out where I was going wrong. I had the idea that when I brought up the html page for the adaptive response that all the forms would fill in with their values from the event, instead copying from the Splunk example I configured my python script to instead pull the value of the field that I wanted (&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/enterprisesecurity/adaptiveresponseframework/exampleadaptiveresponse/)" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/devtools/enterprisesecurity/adaptiveresponseframework/exampleadaptiveresponse/)&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;So instead of opening up that page to input values, the page now has the field name which would be static for this process always, then when I hit run the python script can pull the value of the field from my event using this function (with field being my parameter set in my config):&lt;BR /&gt;&lt;BR /&gt;parameter = result[self.configuration.get("field")]&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 13:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Prepopulate-inputs-in-custom-Splunk-ES-adaptive-response-action/m-p/580784#M10220</guid>
      <dc:creator>dmills_inov</dc:creator>
      <dc:date>2022-01-12T13:51:58Z</dc:date>
    </item>
  </channel>
</rss>

