<?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: How to configure default values for parameters on Modular Inputs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112616#M23607</link>
    <description>&lt;P&gt;That is the perfect answer I was looking for.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2015 12:06:22 GMT</pubDate>
    <dc:creator>andyrobinson</dc:creator>
    <dc:date>2015-05-18T12:06:22Z</dc:date>
    <item>
      <title>How to configure default values for parameters on Modular Inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112614#M23605</link>
      <description>&lt;P&gt;I am using C# SDK 2.0 and Visual Studio 2013 Extension for creating Modular Inputs.  I am trying to understand the best way to specify default values for parameters, if it is even possible.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 04:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112614#M23605</guid>
      <dc:creator>andyrobinson</dc:creator>
      <dc:date>2015-05-18T04:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure default values for parameters on Modular Inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112615#M23606</link>
      <description>&lt;P&gt;There are 2 ways that come to mind :&lt;/P&gt;

&lt;P&gt;1) hard code some defaults in your C# code. But then they are fixed as they are in compiled code.&lt;/P&gt;

&lt;P&gt;2) So perhaps better , ship your modular input with a &lt;STRONG&gt;default/inputs.conf&lt;/STRONG&gt; file that defines a parent stanza with defaults.&lt;/P&gt;

&lt;P&gt;So , your &lt;STRONG&gt;default/inputs.conf&lt;/STRONG&gt; might look like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foo]
some_default_param = 123
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then when users setup stanzas they can inherit the default parameters or override them&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foo://mystanza]
abc=1

[foo://anotherstanza]
abc =2
some_default_param = 678
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2015 11:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112615#M23606</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-05-18T11:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure default values for parameters on Modular Inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112616#M23607</link>
      <description>&lt;P&gt;That is the perfect answer I was looking for.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 12:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112616#M23607</guid>
      <dc:creator>andyrobinson</dc:creator>
      <dc:date>2015-05-18T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure default values for parameters on Modular Inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112617#M23608</link>
      <description>&lt;P&gt;I changed my input.conf file but not able to see my default value on splunk setting=&amp;gt;data=&amp;gt;input=&amp;gt;app=&amp;gt;new page&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 12:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-default-values-for-parameters-on-Modular-Inputs/m-p/112617#M23608</guid>
      <dc:creator>ruchika11</dc:creator>
      <dc:date>2018-10-11T12:12:44Z</dc:date>
    </item>
  </channel>
</rss>

