<?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 add a Splunk Report (saved search) inside the HTML tags? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476586#M7668</link>
    <description>&lt;P&gt;@saulcruzmendez Go ahead and accept your own answer posted above. The reason why I had suggested Embedded Dashboards was to keep the complexity lower. However, if you are comfortable with Simple XML Extensions, you can try the following Splunk .Conf session by @jconger where Example 10 deals with &lt;CODE&gt;Event Handler + Token + Table Cell Render + Modal + Splunk Web Framework&lt;/CODE&gt; to generate a chart as Modal pop-up exactly the same way as your requirement.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=FN1278#/"&gt;10 Tips, Tricks and Hacks for Better Dashboards in Splunk&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 18:52:50 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-11-08T18:52:50Z</dc:date>
    <item>
      <title>How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476582#M7664</link>
      <description>&lt;P&gt;I have created inside an HTML tag a popup with the modal class. &lt;BR /&gt;
However, I'm interested in showing a Report (saved search) on that popup. &lt;BR /&gt;
I'm not sure how to add such a report inside the HTML tag.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;div class="modal popup-body $tokShowModel$" id="myModal"&amp;gt;
         &amp;lt;div class="modal-header popup-header"&amp;gt;
            &amp;lt;h3&amp;gt;Show a report&amp;lt;/h3&amp;gt;
            &amp;lt;div&amp;gt;
             &amp;lt;a id="anchorCloseModalWindow" class="btn btn-primary btn-position"&amp;gt;x&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
         &amp;lt;/div&amp;gt;
         &amp;lt;div class="modal-body"&amp;gt;
         &amp;lt;h1&amp;gt;Report comes here&amp;lt;h1&amp;gt;
         &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 00:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476582#M7664</guid>
      <dc:creator>saulcruzmendez</dc:creator>
      <dc:date>2019-11-07T00:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476583#M7665</link>
      <description>&lt;P&gt;@saulcruzmendez, one simple approach would be to convert your saved search to scheduled search and enable Embedded Report (learn about the best practices to enable this).&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Report/Embedscheduledreports"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Report/Embedscheduledreports&lt;/A&gt;&lt;/P&gt;

&lt;P&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/7905i5F0057059B325060/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;Then you can add the iframe code to your existing Modal Pop-up. Here is a sample code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div class="modal popup-body $tokShowModel$" id="myModal"&amp;gt;
          &amp;lt;div class="modal-header popup-header"&amp;gt;
            &amp;lt;h3&amp;gt;Show a report&amp;lt;/h3&amp;gt;
            &amp;lt;div&amp;gt;
              &amp;lt;a id="anchorCloseModalWindow" class="btn btn-primary btn-position"&amp;gt;x&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div class="modal-body"&amp;gt;
            &amp;lt;h1&amp;gt;Splunkd Error embedded as modal pop-up&amp;lt;/h1&amp;gt;
            &amp;lt;div&amp;gt;
              &amp;lt;iframe height="400" width="480" frameborder="0" src="embedded_report_rest_uri_generated_after_converting_your_report_to_embedded_report"&amp;gt;&amp;lt;/iframe&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do try out and confirm.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476583#M7665</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-07T16:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476584#M7666</link>
      <description>&lt;P&gt;@niketnilay &lt;/P&gt;

&lt;P&gt;Thanks you for your answer. That could work but I need it to be a search on real time, not a schedule report. I have been looking around, and from what is looks like. I need to work on the modal window via JavaScript. &lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 18:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476584#M7666</guid>
      <dc:creator>saulcruzmendez</dc:creator>
      <dc:date>2019-11-07T18:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476585#M7667</link>
      <description>&lt;P&gt;I was able to solve this via a Javascript, using a SearchManager and TableElement.&lt;/P&gt;

&lt;P&gt;These links are pretty good documented:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_searchmanager.html"&gt;https://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_searchmanager.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/webframework/displaydataview/howtoaddvisualhtml"&gt;https://dev.splunk.com/enterprise/docs/developapps/webframework/displaydataview/howtoaddvisualhtml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476585#M7667</guid>
      <dc:creator>saulcruzmendez</dc:creator>
      <dc:date>2019-11-08T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476586#M7668</link>
      <description>&lt;P&gt;@saulcruzmendez Go ahead and accept your own answer posted above. The reason why I had suggested Embedded Dashboards was to keep the complexity lower. However, if you are comfortable with Simple XML Extensions, you can try the following Splunk .Conf session by @jconger where Example 10 deals with &lt;CODE&gt;Event Handler + Token + Table Cell Render + Modal + Splunk Web Framework&lt;/CODE&gt; to generate a chart as Modal pop-up exactly the same way as your requirement.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=FN1278#/"&gt;10 Tips, Tricks and Hacks for Better Dashboards in Splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 18:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476586#M7668</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-08T18:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Splunk Report (saved search) inside the HTML tags?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476587#M7669</link>
      <description>&lt;P&gt;@niketnilay Thank you for the link! I'll for sure watch the video session. I appreciate the help!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 19:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-add-a-Splunk-Report-saved-search-inside-the-HTML-tags/m-p/476587#M7669</guid>
      <dc:creator>saulcruzmendez</dc:creator>
      <dc:date>2019-11-08T19:54:49Z</dc:date>
    </item>
  </channel>
</rss>

