<?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: Can the XML REST API _raw field highlighting be turned off? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33467#M1491</link>
    <description>&lt;P&gt;Yes, please, on that request.  This is greatly interfering with my JAXB handling of the results.&lt;/P&gt;

&lt;P&gt;BTW, this was also asked three years ago, in&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/6678/how-do-i-turn-off-highlighting"&gt;http://splunk-base.splunk.com/answers/6678/how-do-i-turn-off-highlighting&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2013 19:04:02 GMT</pubDate>
    <dc:creator>dwhytock</dc:creator>
    <dc:date>2013-06-19T19:04:02Z</dc:date>
    <item>
      <title>Can the XML REST API _raw field highlighting be turned off?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33464#M1488</link>
      <description>&lt;P&gt;The XML REST API is returning mangled results. It looks like it is applying some sort of highlighting syntaxt to the _raw field;&lt;/P&gt;

&lt;P&gt;The contents of the raw filed have the search string I queried for wrapped by &amp;lt;sg h="1"&amp;gt;[query string]&amp;lt;/sg&amp;gt;. Is there a way to turn this behaviour off?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 15:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33464#M1488</guid>
      <dc:creator>beezly</dc:creator>
      <dc:date>2012-04-23T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can the XML REST API _raw field highlighting be turned off?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33465#M1489</link>
      <description>&lt;P&gt;Unfortunately this is not possible. I will file a request on your behalf to allow this.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 18:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33465#M1489</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2012-04-23T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can the XML REST API _raw field highlighting be turned off?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33466#M1490</link>
      <description>&lt;P&gt;Sorkin knows best, +1 on the request.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 03:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33466#M1490</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-24T03:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can the XML REST API _raw field highlighting be turned off?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33467#M1491</link>
      <description>&lt;P&gt;Yes, please, on that request.  This is greatly interfering with my JAXB handling of the results.&lt;/P&gt;

&lt;P&gt;BTW, this was also asked three years ago, in&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/6678/how-do-i-turn-off-highlighting"&gt;http://splunk-base.splunk.com/answers/6678/how-do-i-turn-off-highlighting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2013 19:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33467#M1491</guid>
      <dc:creator>dwhytock</dc:creator>
      <dc:date>2013-06-19T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can the XML REST API _raw field highlighting be turned off?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33468#M1492</link>
      <description>&lt;P&gt;This is specific to the PowerShell SDK, and somewhat ugly, but might give you some ideas on hacking your way around this quirk.&lt;/P&gt;

&lt;P&gt;In Splunk-Search.psm1, on line 142, I changed this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{$_.k -eq "_raw"}           { $Myobj.Add("raw",$_.v.'#text');continue}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{$_.k -eq "_raw"}   {
    $rawTemp =  $_.v.OuterXml     
    $rawTemp = $rawTemp -replace "&amp;lt;v xml:space=`"preserve`" trunc=`"0`"&amp;gt;", ""    
    $rawTemp = $rawTemp -replace "&amp;lt;sg h=`"1`"&amp;gt;", "" 
    $rawTemp = $rawTemp -replace "&amp;lt;/sg&amp;gt;", ""   
    $rawTemp = $rawTemp -replace "&amp;lt;/v&amp;gt;", ""
    #write-host "rawTemp: $rawTemp";
    $Myobj.Add("raw",$rawTemp);continue}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 20:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-the-XML-REST-API-raw-field-highlighting-be-turned-off/m-p/33468#M1492</guid>
      <dc:creator>elazaroh</dc:creator>
      <dc:date>2014-04-16T20:19:53Z</dc:date>
    </item>
  </channel>
</rss>

