<?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 display indexed HTML content in Dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352978#M39363</link>
    <description>&lt;P&gt;Hi @cmerriman,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. &lt;BR /&gt;
Yes we can do this but my index contains the html pages. &lt;BR /&gt;
My all html page get index in main index and HTMLContent filed has html tags. It Could be table , div or any tag.&lt;/P&gt;

&lt;P&gt;Can you please guide me in this scenario.??&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 05:43:53 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-06-15T05:43:53Z</dc:date>
    <item>
      <title>How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352975#M39360</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to know how we can display indexed HTML content in Dashboard.&lt;/P&gt;

&lt;P&gt;My sample dashboard xml is below. (Here I have used SAMPLE search which will return HTML content)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| stats count | eval A="&amp;lt;h1&amp;gt;My Test HTML&amp;lt;/h1&amp;gt;" &amp;lt;/query&amp;gt;
      &amp;lt;preview&amp;gt;
        &amp;lt;set token="A"&amp;gt;$result.A$&amp;lt;/set&amp;gt;
      &amp;lt;/preview&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;label&amp;gt;Test Html&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt; $A$ &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My Expected result is:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My Test HTML&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So is it possible without using Javascript? I have tried with javascript and it's working. But we don't want to use Javascript.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Kamlesh&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 12:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352975#M39360</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-06-14T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352976#M39361</link>
      <description>&lt;P&gt;does this get you what you need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
   &amp;lt;search&amp;gt;
     &amp;lt;query&amp;gt;| stats count | eval A="My Test HTML" &amp;lt;/query&amp;gt;
       &amp;lt;preview&amp;gt;
         &amp;lt;set token="A"&amp;gt;$result.A$&amp;lt;/set&amp;gt;
       &amp;lt;/preview&amp;gt;
   &amp;lt;/search&amp;gt;
   &amp;lt;label&amp;gt;Test Html&amp;lt;/label&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;html&amp;gt; &amp;lt;h1&amp;gt;$A$&amp;lt;/h1&amp;gt; &amp;lt;/html&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
 &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;put the html formatting in the html panels? unless I'm missing something, which is completely possible&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 12:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352976#M39361</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-14T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352977#M39362</link>
      <description>&lt;P&gt;You can (1-way trip) convert your whole panel to html or you can add some html child elements in the XML but only in some nodes.  For example, this is allowed in the panel node:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;!--title&amp;gt;Foo Bar&amp;lt;/title--&amp;gt;
  &amp;lt;html&amp;gt;
    &amp;lt;div style="text-align: left;"&amp;gt;
      &amp;lt;h2&amp;gt;Foo Bar&amp;lt;/h2&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this results in &lt;CODE&gt;Invalid child="html" is not allowed in node="dashboard"&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div style="text-align: left;"&amp;gt;
          &amp;lt;h2&amp;gt;Foo Bar&amp;lt;/h2&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352977#M39362</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-14T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352978#M39363</link>
      <description>&lt;P&gt;Hi @cmerriman,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. &lt;BR /&gt;
Yes we can do this but my index contains the html pages. &lt;BR /&gt;
My all html page get index in main index and HTMLContent filed has html tags. It Could be table , div or any tag.&lt;/P&gt;

&lt;P&gt;Can you please guide me in this scenario.??&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 05:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352978#M39363</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-06-15T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352979#M39364</link>
      <description>&lt;P&gt;HI woodcock,&lt;/P&gt;

&lt;P&gt;I just given a sample xml.&lt;BR /&gt;
Can you please see my comment on @cmerriman's comment??&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 05:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352979#M39364</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-06-15T05:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352980#M39365</link>
      <description>&lt;P&gt;Just as a quick thought without testing anything, you could encase the query in CDATA. I'll try to test it out in a bit, bu let you might beat me to it. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 11:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352980#M39365</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-15T11:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to display indexed HTML content in Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352981#M39366</link>
      <description>&lt;P&gt;Hi @cmerriman,&lt;BR /&gt;
I have tried with CDATA but no luck. It's showing HTML Decoded value.. like &amp;amp; gt;h1&amp;amp; lt;........&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 05:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-indexed-HTML-content-in-Dashboard/m-p/352981#M39366</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-06-16T05:16:30Z</dc:date>
    </item>
  </channel>
</rss>

