<?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 multi-value parameters for a Modular Input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-multi-value-parameters-for-a-Modular-Input/m-p/139632#M28697</link>
    <description>&lt;P&gt;To way to tell Splunk to split configuration parameters into a list of parameters is via the introspection XML scheme.  For example, on Windows, the perfmon input uses this feature:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;b:\&amp;gt;%splunk_home%\etc\system\bin\perfmon.cmd --scheme
&amp;lt;scheme&amp;gt;
[...skipped...]
            &amp;lt;arg name="counters"&amp;gt;
                &amp;lt;title&amp;gt;counters&amp;lt;/title&amp;gt;
                &amp;lt;list_delimiter&amp;gt;;&amp;lt;/list_delimiter&amp;gt;
                &amp;lt;required_on_create&amp;gt;false&amp;lt;/required_on_create&amp;gt;
            &amp;lt;/arg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The presence of "list_delimiter" tells Splunk that "counters" is a multi-value parameter, and that the delimiter is ";".  This will cause the configuration setting to be split by that delimiter.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2014 17:59:31 GMT</pubDate>
    <dc:creator>igor</dc:creator>
    <dc:date>2014-10-09T17:59:31Z</dc:date>
    <item>
      <title>How to configure multi-value parameters for a Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-multi-value-parameters-for-a-Modular-Input/m-p/139631#M28696</link>
      <description>&lt;P&gt;I'm building a Modular Input and I need to accept an arbitrary number of values for a given parameter. The SDKs seem support this via multi-value parameters (see &lt;CODE&gt;param_list&lt;/CODE&gt; in this sample input definition):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;stanza name="foobar://bbb"&amp;gt;
  &amp;lt;param name="param1"&amp;gt;value11&amp;lt;/param&amp;gt;
  &amp;lt;param name="param2"&amp;gt;value22&amp;lt;/param&amp;gt;
  &amp;lt;param name="disabled"&amp;gt;0&amp;lt;/param&amp;gt;
  &amp;lt;param name="index"&amp;gt;default&amp;lt;/param&amp;gt;
  &amp;lt;param_list name="multiValue"&amp;gt;
    &amp;lt;value&amp;gt;value1&amp;lt;/value&amp;gt;
    &amp;lt;value&amp;gt;value2&amp;lt;/value&amp;gt;
  &amp;lt;/param_list&amp;gt;
  &amp;lt;param_list name="multiValue2"&amp;gt;
    &amp;lt;value&amp;gt;value3&amp;lt;/value&amp;gt;
    &amp;lt;value&amp;gt;value4&amp;lt;/value&amp;gt;
  &amp;lt;/param_list&amp;gt;
&amp;lt;/stanza&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is, I can't seem to figure out how to configure my stanzas in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; and &lt;CODE&gt;input.conf.spec&lt;/CODE&gt; to cause parameters to be passed to my modular input in this format. All of the SDKs seem to support multi-value parameters, but I've not been able to find any documentation on how to actually set the parameters.&lt;/P&gt;

&lt;P&gt;In my &lt;CODE&gt;inputs.conf&lt;/CODE&gt; I've tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;someParameter = value1;value2

someParameter = value1,value2

someParameter = "value1";"value2"

someParameter = "value1","value2"

someParameter = value1
someParameter = value2

someParameter1 = value1
someParameter2 = value2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But none of these work. How do I pass parameters from &lt;CODE&gt;inputs.conf&lt;/CODE&gt; to a modular input as a multi-value parameter list (&lt;CODE&gt;param_list&lt;/CODE&gt;)?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2014 19:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-multi-value-parameters-for-a-Modular-Input/m-p/139631#M28696</guid>
      <dc:creator>curtisb1024</dc:creator>
      <dc:date>2014-07-11T19:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure multi-value parameters for a Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-multi-value-parameters-for-a-Modular-Input/m-p/139632#M28697</link>
      <description>&lt;P&gt;To way to tell Splunk to split configuration parameters into a list of parameters is via the introspection XML scheme.  For example, on Windows, the perfmon input uses this feature:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;b:\&amp;gt;%splunk_home%\etc\system\bin\perfmon.cmd --scheme
&amp;lt;scheme&amp;gt;
[...skipped...]
            &amp;lt;arg name="counters"&amp;gt;
                &amp;lt;title&amp;gt;counters&amp;lt;/title&amp;gt;
                &amp;lt;list_delimiter&amp;gt;;&amp;lt;/list_delimiter&amp;gt;
                &amp;lt;required_on_create&amp;gt;false&amp;lt;/required_on_create&amp;gt;
            &amp;lt;/arg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The presence of "list_delimiter" tells Splunk that "counters" is a multi-value parameter, and that the delimiter is ";".  This will cause the configuration setting to be split by that delimiter.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-multi-value-parameters-for-a-Modular-Input/m-p/139632#M28697</guid>
      <dc:creator>igor</dc:creator>
      <dc:date>2014-10-09T17:59:31Z</dc:date>
    </item>
  </channel>
</rss>

