<?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 Bypass response format check in PersistentServerConnectionApplication in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Bypass-response-format-check-in/m-p/659413#M111548</link>
    <description>&lt;P&gt;I am trying to host Prometheus metrics on a Splunk app such that the metrics are available at `.../my_app/v1/metrics` endpoint.&lt;/P&gt;&lt;P&gt;I am able to create a handler of type&amp;nbsp;PersistentServerConnectionApplication and have it return Prometheus metrics. The response status, however, code = `500` and content = `&lt;SPAN&gt;Unexpected character while looking for value: '#'`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prometheus metrics do not confirm to any of the supported `output_modes`&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(atom | csv | json | json_cols | json_rows | raw | xml)&lt;/PRE&gt;&lt;P&gt;so I get the same error irrespective of the output mode chosen.&lt;/P&gt;&lt;P&gt;Is there a way to bypass the output check? Is there any other alternative to host a non-confirming-format output via a Splunk REST API?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Oct 2023 08:28:38 GMT</pubDate>
    <dc:creator>RG2</dc:creator>
    <dc:date>2023-10-03T08:28:38Z</dc:date>
    <item>
      <title>Bypass response format check in PersistentServerConnectionApplication</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Bypass-response-format-check-in/m-p/659413#M111548</link>
      <description>&lt;P&gt;I am trying to host Prometheus metrics on a Splunk app such that the metrics are available at `.../my_app/v1/metrics` endpoint.&lt;/P&gt;&lt;P&gt;I am able to create a handler of type&amp;nbsp;PersistentServerConnectionApplication and have it return Prometheus metrics. The response status, however, code = `500` and content = `&lt;SPAN&gt;Unexpected character while looking for value: '#'`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prometheus metrics do not confirm to any of the supported `output_modes`&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(atom | csv | json | json_cols | json_rows | raw | xml)&lt;/PRE&gt;&lt;P&gt;so I get the same error irrespective of the output mode chosen.&lt;/P&gt;&lt;P&gt;Is there a way to bypass the output check? Is there any other alternative to host a non-confirming-format output via a Splunk REST API?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Bypass-response-format-check-in/m-p/659413#M111548</guid>
      <dc:creator>RG2</dc:creator>
      <dc:date>2023-10-03T08:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bypass response format check in PersistentServerConnectionApplication</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Bypass-response-format-check-in/m-p/660037#M111613</link>
      <description>&lt;P&gt;I'm assuming you know about &amp;amp; are modeling things after the &lt;A href="https://github.com/jrervin/splunk-rest-examples/tree/master" target="_self"&gt;Splunk Rest Examples&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a bit of your Python on how you are returning your data?&amp;nbsp;What I'm thinking is if your &lt;EM&gt;handle&lt;/EM&gt; method isn't returning your data in the correct JSON format it needs to generate the response.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 20:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Bypass-response-format-check-in/m-p/660037#M111613</guid>
      <dc:creator>_JP</dc:creator>
      <dc:date>2023-10-06T20:06:24Z</dc:date>
    </item>
  </channel>
</rss>

