<?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 request payload in a POST HTTP Method with REST API Modular Input? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-request-payload-in-a-POST-HTTP-Method-with-REST/m-p/568434#M75223</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216133"&gt;@erwan_raulet&lt;/a&gt;&amp;nbsp;: Did you able to solve it&amp;nbsp; ? I have the same requirements. Not sure what format required in payload&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 19:11:39 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2021-09-24T19:11:39Z</dc:date>
    <item>
      <title>How to configure request payload in a POST HTTP Method with REST API Modular Input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-request-payload-in-a-POST-HTTP-Method-with-REST/m-p/380672#M46338</link>
      <description>&lt;P&gt;I want to use REST API Modular Input to count alarms from my Spectrum monitoring tool.&lt;BR /&gt;
Here's the query I'm using with Postman to query my Spectrum server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;POST /spectrum/restful/alarms/count HTTP/1.1 
Host: MyServer:8080
Content-Type: application/xml,application/json
Authorization: Basic YmNpdC1waWwdcnBpbG90ZTE=
cache-control: no-cache 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;rs:alarms-count-request xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request
../../../xsd/Request.xsd "&amp;gt;
&amp;lt;rs:alarm-filter name="def"/&amp;gt; 
&amp;lt;/rs:alarms-count-request&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the response:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"
standalone="yes"?&amp;gt;
&amp;lt;alarmcount-response
xmlns="http://www.ca.com/spectrum/restful/schema/response"&amp;gt;
    &amp;lt;critical&amp;gt;3&amp;lt;/critical&amp;gt;
    &amp;lt;major&amp;gt;2&amp;lt;/major&amp;gt;
    &amp;lt;minor&amp;gt;4&amp;lt;/minor&amp;gt; &amp;lt;/alarmcount-response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now its configuration in the module REST_ta of Splunk.&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/6788iDB1C11A69DE98F3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I get an HTTP 500 error in splunkd.log&lt;BR /&gt;
I think this comes from the Request Payload field but I do not see my error. Can someone help me? &lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 16:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-request-payload-in-a-POST-HTTP-Method-with-REST/m-p/380672#M46338</guid>
      <dc:creator>erwan_raulet</dc:creator>
      <dc:date>2019-03-26T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure request payload in a POST HTTP Method with REST API Modular Input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-request-payload-in-a-POST-HTTP-Method-with-REST/m-p/568434#M75223</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216133"&gt;@erwan_raulet&lt;/a&gt;&amp;nbsp;: Did you able to solve it&amp;nbsp; ? I have the same requirements. Not sure what format required in payload&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-request-payload-in-a-POST-HTTP-Method-with-REST/m-p/568434#M75223</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-09-24T19:11:39Z</dc:date>
    </item>
  </channel>
</rss>

