<?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: Is it possible to get warnings via REST API when using JSON? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-get-warnings-via-REST-API-when-using-JSON/m-p/68997#M13966</link>
    <description>&lt;P&gt;I don't think you will get these warning messages as part of requests to other endpoints than the ones that specifically will give you this information. The ones I imagine would be of relevance to you are:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;licenser/messages&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTlicense#licenser.2Fmessages"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTlicense#licenser.2Fmessages&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;messages&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTsystem#messages"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTsystem#messages&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 25 Sep 2012 06:08:17 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-09-25T06:08:17Z</dc:date>
    <item>
      <title>Is it possible to get warnings via REST API when using JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-get-warnings-via-REST-API-when-using-JSON/m-p/68996#M13965</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We recently had a temporary problem with a license configuration which produced warnings when searching in the Splunk UI.&lt;/P&gt;

&lt;P&gt;Running the same search via the REST API and using output_mode set to 'json' while the warnings were still unresolved resulted in an empty result set ("[]") response rather than any type of error or warning.  The search I was running normally would have returned two results.&lt;/P&gt;

&lt;P&gt;I ran the same search using the default XML output_mode and the same warnings that were in the UI showed up in the XML as &amp;lt;msg type="WARN"&amp;gt; elements.&lt;/P&gt;

&lt;P&gt;Is there a way to get the warnings to show up in the JSON output which is considerably easier to parse (I'm using Python)?  We resolved the cause of the warnings but I don't want to rely on JSON output if it ignores warnings and acts the same as if there were no matches to the search.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;BR /&gt;
--jean&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-get-warnings-via-REST-API-when-using-JSON/m-p/68996#M13965</guid>
      <dc:creator>JeanA</dc:creator>
      <dc:date>2012-09-24T21:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get warnings via REST API when using JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-get-warnings-via-REST-API-when-using-JSON/m-p/68997#M13966</link>
      <description>&lt;P&gt;I don't think you will get these warning messages as part of requests to other endpoints than the ones that specifically will give you this information. The ones I imagine would be of relevance to you are:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;licenser/messages&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTlicense#licenser.2Fmessages"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTlicense#licenser.2Fmessages&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;messages&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTsystem#messages"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/RESTAPI/RESTsystem#messages&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 25 Sep 2012 06:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-get-warnings-via-REST-API-when-using-JSON/m-p/68997#M13966</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-25T06:08:17Z</dc:date>
    </item>
  </channel>
</rss>

