<?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 passing multivalue arguments rest_ta inputs in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354595#M42891</link>
    <description>&lt;P&gt;I am trying out the rest_ta and having an issue trying to use a GET request with a multi-value argument.&lt;BR /&gt;
The argument I want to pass is, "&lt;EM&gt;return_fields&lt;/EM&gt;=comment,network"&lt;BR /&gt;
I tried escaping with " or ', and also tried passing &lt;EM&gt;return_fields&lt;/EM&gt; twice, one for each argument value.  The first value was then dropped.&lt;/P&gt;

&lt;P&gt;If I try to use "&lt;EM&gt;return_fields&lt;/EM&gt;=comment,network" as either an url argument or http header property, I get the below error:&lt;/P&gt;

&lt;P&gt;12-20-2017 17:17:12.808 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py"     http_header_propertys = dict((k.strip(), v.strip()) for k,v in&lt;BR /&gt;
12-20-2017 17:17:12.808 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py" ValueError: need more than 1 value to unpack&lt;/P&gt;

&lt;P&gt;Can anyone point me in the right direction here? Is there some different escape format or do I need to head down a different direction? Appreciate any suggestions - just getting started with rest calls.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:20:23 GMT</pubDate>
    <dc:creator>pmeyerson</dc:creator>
    <dc:date>2020-09-29T17:20:23Z</dc:date>
    <item>
      <title>passing multivalue arguments rest_ta inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354595#M42891</link>
      <description>&lt;P&gt;I am trying out the rest_ta and having an issue trying to use a GET request with a multi-value argument.&lt;BR /&gt;
The argument I want to pass is, "&lt;EM&gt;return_fields&lt;/EM&gt;=comment,network"&lt;BR /&gt;
I tried escaping with " or ', and also tried passing &lt;EM&gt;return_fields&lt;/EM&gt; twice, one for each argument value.  The first value was then dropped.&lt;/P&gt;

&lt;P&gt;If I try to use "&lt;EM&gt;return_fields&lt;/EM&gt;=comment,network" as either an url argument or http header property, I get the below error:&lt;/P&gt;

&lt;P&gt;12-20-2017 17:17:12.808 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py"     http_header_propertys = dict((k.strip(), v.strip()) for k,v in&lt;BR /&gt;
12-20-2017 17:17:12.808 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py" ValueError: need more than 1 value to unpack&lt;/P&gt;

&lt;P&gt;Can anyone point me in the right direction here? Is there some different escape format or do I need to head down a different direction? Appreciate any suggestions - just getting started with rest calls.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354595#M42891</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2020-09-29T17:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: passing multivalue arguments rest_ta inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354596#M42892</link>
      <description>&lt;P&gt;For &lt;CODE&gt;return_fields=comment,network&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;change the delimiter to something other than a comma , such as a colon&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4047i651782AE36D4AF6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 06:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354596#M42892</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-12-21T06:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: passing multivalue arguments rest_ta inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354597#M42893</link>
      <description>&lt;P&gt;Hi Pmeyerson,&lt;BR /&gt;
Can you check below splunk docs for return command if it helps?&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Return"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Return&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 06:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354597#M42893</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2017-12-21T06:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: passing multivalue arguments rest_ta inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354598#M42894</link>
      <description>&lt;P&gt;thanks, I misread the input page and didn't understand that, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-multivalue-arguments-rest-ta-inputs/m-p/354598#M42894</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2017-12-21T14:30:26Z</dc:date>
    </item>
  </channel>
</rss>

