<?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 handle custom parameters in rest modular input in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365675#M44149</link>
    <description>&lt;P&gt;Thank you very much Damien!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 08:59:07 GMT</pubDate>
    <dc:creator>cafissimo</dc:creator>
    <dc:date>2017-10-04T08:59:07Z</dc:date>
    <item>
      <title>How to handle custom parameters in rest modular input</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365672#M44146</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have developed a custom response handler class for TA.rest modular input and I would like to pass a custom parameter to it.&lt;BR /&gt;
I know this is possible, by setting custom parameters in the input configuration page (key1=value, key2=value).&lt;BR /&gt;
What I can't figure out is how I can access these parameters in my custom class.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;class customHandler:

     def __init__(self,**args):
         pass

     def __call__(self, response_object,raw_response_output,response_type,req_args,endpoint):
         if response_type == "json":
             output = json.loads(raw_response_output)
             for record in output["logins"]:
                 print_xml_stream(json.dumps(record))
         else:
             print_xml_stream(raw_response_output)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 07:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365672#M44146</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2017-10-04T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom parameters in rest modular input</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365673#M44147</link>
      <description>&lt;P&gt;Maybe I have found myself the answer in this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/334524/accessing-response-handler-arguments-from-response-1.html"&gt;https://answers.splunk.com/answers/334524/accessing-response-handler-arguments-from-response-1.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 08:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365673#M44147</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2017-10-04T08:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom parameters in rest modular input</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365674#M44148</link>
      <description>&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/3577i01E7EF087CECEDBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&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/3578i5BD27EFE9B2FD989/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>Wed, 04 Oct 2017 08:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365674#M44148</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-10-04T08:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom parameters in rest modular input</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365675#M44149</link>
      <description>&lt;P&gt;Thank you very much Damien!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 08:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-handle-custom-parameters-in-rest-modular-input/m-p/365675#M44149</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2017-10-04T08:59:07Z</dc:date>
    </item>
  </channel>
</rss>

