<?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: [RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250184#M48129</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thank you for your help, it is indeed what I was looking for!&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 08:28:00 GMT</pubDate>
    <dc:creator>Estrellia</dc:creator>
    <dc:date>2016-08-26T08:28:00Z</dc:date>
    <item>
      <title>[RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250181#M48126</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I read some docs about how to set up a screen to allow my user to customize the inputs.conf of the application I created.&lt;/P&gt;

&lt;P&gt;However, I can't find an answer to this question: Is there a way to change the arguments of the input script through this setup screen?&lt;/P&gt;

&lt;P&gt;Let me explain it:&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME/etc/apps/myAppFolder/bin/scripts/myScript.sh CREDENTIALS IP_TO_REACH PORT]&lt;/P&gt;

&lt;P&gt;Where of course credentials Ip_to_reach and Port are placeholders and need to be replaced once the app has been configured.&lt;/P&gt;

&lt;P&gt;I would like my user to be able to modify this line to replace the credentials, Ip and port.&lt;/P&gt;

&lt;P&gt;I read on the documentation the possibility to change the "fields" in each input but in this particular case I can't seem to find the way... I can only create a new object.&lt;BR /&gt;
But there is nothing on how to modify it.&lt;/P&gt;

&lt;P&gt;Thanks for your help guys, I'm a beginner so I apologize if it's an easy question.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250181#M48126</guid>
      <dc:creator>Estrellia</dc:creator>
      <dc:date>2020-09-29T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: [RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250182#M48127</link>
      <description>&lt;P&gt;If I were you, I would use Modular Input instead of scripted input in case I would like to have user input for custom parameters to pass to my Modular Input script. By making use of Modular Input feature,  add option to let user define value for custom attribute through &lt;STRONG&gt;Settings -&amp;gt; Data Inputs -&amp;gt; Name of your custom Modular Input&lt;/STRONG&gt; &lt;BR /&gt;
(ref. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/ModInputsIntro#Comparing_modular_inputs_to_scripted_inputs"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/ModInputsIntro#Comparing_modular_inputs_to_scripted_inputs&lt;/A&gt; )&lt;/P&gt;

&lt;P&gt;Useful doc links for Modular Inputs are&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/ModInputsBasicExample"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/ModInputsBasicExample&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAER3"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAER3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 16:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250182#M48127</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-08-25T16:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: [RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250183#M48128</link>
      <description>&lt;P&gt;The "correct" way to handle situations like this is to create a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/ModInputsIntro"&gt;modular input&lt;/A&gt;.  Modular inputs allow you to specify parameters with a user interface.  There was a great session on this at the 2015 .conf&lt;BR /&gt;
Recording -&amp;gt; &lt;A href="http://conf.splunk.com/session/2015/recordings/2015-splunk-71.mp4"&gt;http://conf.splunk.com/session/2015/recordings/2015-splunk-71.mp4&lt;/A&gt;&lt;BR /&gt;
Slides -&amp;gt; &lt;A href="http://conf.splunk.com/session/2015/conf2015_SHaskell_Splunk_Developing_ModularInputsIfYou.pdf"&gt;http://conf.splunk.com/session/2015/conf2015_SHaskell_Splunk_Developing_ModularInputsIfYou.pdf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the case of setup.xml, the text between the brackets is your entity.  The default setup handlers can modify fields for an entity, but you would need to use a  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/SetupExampleCustom"&gt;custom setup handler&lt;/A&gt; to create/delete entities if you wanted to stick with a scripted input with command line parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 16:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250183#M48128</guid>
      <dc:creator>jconger</dc:creator>
      <dc:date>2016-08-25T16:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: [RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250184#M48129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thank you for your help, it is indeed what I was looking for!&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 08:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250184#M48129</guid>
      <dc:creator>Estrellia</dc:creator>
      <dc:date>2016-08-26T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: [RESOLVED] Is there a way to modify input script arguments through a setup screen (setup.xml)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250185#M48130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thanks for your reply, I'll dig this way.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 08:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/RESOLVED-Is-there-a-way-to-modify-input-script-arguments-through/m-p/250185#M48130</guid>
      <dc:creator>Estrellia</dc:creator>
      <dc:date>2016-08-26T08:28:30Z</dc:date>
    </item>
  </channel>
</rss>

