<?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: Why does configuring a Response Handler in the REST API Modular Input break polling? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276723#M32435</link>
    <description>&lt;P&gt;I have not, no.  I was under the impression that  JSONArrayHandler would perhaps automatically make each item in the array a separate event in splunk.  I read through the code for it, but unfortunately I can only read so much python.  I could perhaps devise one if I saw an example of some JSON with its custom handler.  I could probably manipulate it to fit the format of the JSON I'm working with.  &lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2016 02:51:01 GMT</pubDate>
    <dc:creator>mlcooper7</dc:creator>
    <dc:date>2016-12-11T02:51:01Z</dc:date>
    <item>
      <title>Why does configuring a Response Handler in the REST API Modular Input break polling?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276721#M32433</link>
      <description>&lt;P&gt;I am trying to ingest some JSON from a REST endpoint that is an array in the form:&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/2231iA7C02E282FABCA7E/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;My goal is to make each element in the array a &lt;STRONG&gt;separate event&lt;/STRONG&gt; in Splunk.&lt;/P&gt;

&lt;P&gt;When I configure the REST API Modular Input endpoint with JSONArrayHandler for the Response Handler, it seems that polling breaks. I &lt;CODE&gt;tail -f /opt/splunk/var/log/splunk/splunkd.log&lt;/CODE&gt; but it does not seem to ever poll. If I remove JSONArrayHandler from the Response Handler configuration, it does poll.&lt;/P&gt;

&lt;P&gt;Config:&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/2232iD7EAB2D372FD4230/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 am using &lt;A href="https://splunkbase.splunk.com/app/1546/"&gt;https://splunkbase.splunk.com/app/1546/&lt;/A&gt; version 1.4 and splunk enterprise 6.5.1.&lt;/P&gt;

&lt;P&gt;Why does polling stop if I configure &lt;CODE&gt;JSONArrayHandler&lt;/CODE&gt; for the Response Handler?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 18:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276721#M32433</guid>
      <dc:creator>mlcooper7</dc:creator>
      <dc:date>2016-12-10T18:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why does configuring a Response Handler in the REST API Modular Input break polling?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276722#M32434</link>
      <description>&lt;P&gt;Have you tried creating your own custom handler that is actually specific to your JSON format ?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 02:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276722#M32434</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2016-12-11T02:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does configuring a Response Handler in the REST API Modular Input break polling?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276723#M32435</link>
      <description>&lt;P&gt;I have not, no.  I was under the impression that  JSONArrayHandler would perhaps automatically make each item in the array a separate event in splunk.  I read through the code for it, but unfortunately I can only read so much python.  I could perhaps devise one if I saw an example of some JSON with its custom handler.  I could probably manipulate it to fit the format of the JSON I'm working with.  &lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 02:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276723#M32435</guid>
      <dc:creator>mlcooper7</dc:creator>
      <dc:date>2016-12-11T02:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why does configuring a Response Handler in the REST API Modular Input break polling?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276724#M32436</link>
      <description>&lt;P&gt;I'm not able to share my JSON due to its somewhat sensitive nature, however the FlightInfo example looks like it might sort of translate to the format of my JSON.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/240659/how-to-troubleshoot-why-rest-api-modular-input-sto.html"&gt;https://answers.splunk.com/answers/240659/how-to-troubleshoot-why-rest-api-modular-input-sto.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 02:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276724#M32436</guid>
      <dc:creator>mlcooper7</dc:creator>
      <dc:date>2016-12-11T02:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does configuring a Response Handler in the REST API Modular Input break polling?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276725#M32437</link>
      <description>&lt;P&gt;That worked!  Each of the elements in my JSON is now a separate event in splunk.  Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 03:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-configuring-a-Response-Handler-in-the-REST-API-Modular/m-p/276725#M32437</guid>
      <dc:creator>mlcooper7</dc:creator>
      <dc:date>2016-12-11T03:11:15Z</dc:date>
    </item>
  </channel>
</rss>

