<?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 add setup parameters to a new shell input in the Splunk Add-on Builder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-setup-parameters-to-a-new-shell-input-in-the-Splunk/m-p/598655#M104415</link>
    <description>&lt;P&gt;&lt;SPAN&gt;On the page "Configure data collection using a REST API call" there is a section about adding &lt;/SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollection#Pass_values_from_setup_parameters" target="_self"&gt;&lt;I&gt;setup&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollection#Pass_values_from_setup_parameters" target="_self"&gt;parameters&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;However, on the&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;shell&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;input page "&lt;/SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollectionShell" target="_blank" rel="noopener noreferrer"&gt;Configure data collection using a shell command&lt;/A&gt;&lt;SPAN&gt;" there is no such section. There is a section about adding&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;input&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;parameters, but it's not the same. The reason I'm asking is because I'm trying to add&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;setup&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;parameterts to a shell input, and I just get error messages in the final validation page, no matter what I do.&lt;BR /&gt;&lt;BR /&gt;Should it be the same syntax as for REST-inputs, or is it different for shell inputs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See attached screenshot of what I'm trying to do.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I've already tried the following versions of the parameter syntax, but I get the same error messages for all of them,&amp;nbsp; and yes, I've added values to the parameters (in the Add-on Setup Parameters tab).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${__settings__.additional_parameters.my_parameter}
${additional_parameters.my_parameter}
${my_parameter}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I get it to work if I switch to &lt;EM&gt;input&lt;/EM&gt; parameters instead, but in this case I want to use &lt;EM&gt;setup&lt;/EM&gt; parameters, as I'm planning to re-use the parameters in several inputs.&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 12:45:18 GMT</pubDate>
    <dc:creator>hettervik</dc:creator>
    <dc:date>2022-05-20T12:45:18Z</dc:date>
    <item>
      <title>How to add setup parameters to a new shell input in the Splunk Add-on Builder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-setup-parameters-to-a-new-shell-input-in-the-Splunk/m-p/598655#M104415</link>
      <description>&lt;P&gt;&lt;SPAN&gt;On the page "Configure data collection using a REST API call" there is a section about adding &lt;/SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollection#Pass_values_from_setup_parameters" target="_self"&gt;&lt;I&gt;setup&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollection#Pass_values_from_setup_parameters" target="_self"&gt;parameters&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;However, on the&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;shell&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;input page "&lt;/SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/ConfigureDataCollectionShell" target="_blank" rel="noopener noreferrer"&gt;Configure data collection using a shell command&lt;/A&gt;&lt;SPAN&gt;" there is no such section. There is a section about adding&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;input&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;parameters, but it's not the same. The reason I'm asking is because I'm trying to add&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;setup&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;parameterts to a shell input, and I just get error messages in the final validation page, no matter what I do.&lt;BR /&gt;&lt;BR /&gt;Should it be the same syntax as for REST-inputs, or is it different for shell inputs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See attached screenshot of what I'm trying to do.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I've already tried the following versions of the parameter syntax, but I get the same error messages for all of them,&amp;nbsp; and yes, I've added values to the parameters (in the Add-on Setup Parameters tab).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${__settings__.additional_parameters.my_parameter}
${additional_parameters.my_parameter}
${my_parameter}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I get it to work if I switch to &lt;EM&gt;input&lt;/EM&gt; parameters instead, but in this case I want to use &lt;EM&gt;setup&lt;/EM&gt; parameters, as I'm planning to re-use the parameters in several inputs.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 12:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-setup-parameters-to-a-new-shell-input-in-the-Splunk/m-p/598655#M104415</guid>
      <dc:creator>hettervik</dc:creator>
      <dc:date>2022-05-20T12:45:18Z</dc:date>
    </item>
  </channel>
</rss>

